Hi,
using a template for a Title of an alert,
I found that the time is not in daylight time!
{{ define "MyTitle" -}}
{{ len .Alerts }} alert(s)
{{ range .Alerts -}}
Summary: {{.Annotations.summary}}
Status: {{ .Status }}
Orario : {{ $startsAt := .StartsAt }} {{ printf "%02d:%02d:%02d" $startsAt.Hour $startsAt.Minute $startsAt.Second }}
{{ end -}}
{{ end }}
How can I fix this ?
and this not works
{{ define "custom_template" }}
{{ range .Alerts }}
{{ .StartsAt | tz "Europe/Paris" }}
{{ end}}
{{ end }}
ERR:function “tz” not defined
this using Grafana v10.2.2
Thank you !