Grafana Alert Notification Template - How to change timezone to UTC+08

Hello Grafana Community,

I am working on customizing the alert notification template in Grafana and need assistance with changing the timezone to UTC+08. Currently, my template looks like this:

{{ define "alert.print_alert" -}}

 {{ .Labels.alertname }}
Time: {{ .StartsAt.Format "2006-01-02 03:04:05 MST" }}
{{ end }}

Grafana Version: Grafana v10.2.0

I would like to adjust the timezone to UTC+08. Can someone guide me on the correct syntax or configuration to achieve this?

Thank you in advance for your help!


I would also like to hear an answer to this. The dashboard shows my local time, but alerts are always in UTC. Where can I change the setting for this?

1 Like

Also struggling with the correct syntax. Gos time package documentation referenced in grafana docs is not providing much help


Struggling with this too. Did you get a solution for this?