How can we set the {{ctx.periodStart}} timezone from UTC to IST

Hello,

I’m trying to send slack alert in which I want to set the {{ctx.periodStart}} to be displayed in IST.

Hoping for help.

Thank you.

you may have to use a painless script like this

{{ctx.periodStart}}.value.withZoneSameInstant(ZoneId.of("Asia/Kolkata")); 

Thank You @jathin12 for replying but the periodStart is not parsed to IST and it prints the whole line in the alert message.

Attaching the screenshot, Check the Message Preview.