alertmanager/template
George Robinson dc1e1a2b88
Add date and tz functions to templates (#3812)
* Add date and tz functions to templates

This commit adds the date and tz functions to templates. This means
users can now format time in a specified format and also change
the timezone to their specific locale.

An example of how these functions work, and can be composed together,
can be seen here:

	{{ .StartsAt | tz "Europe/Paris" | date "15:04:05 MST" }}

Signed-off-by: George Robinson <george.robinson@grafana.com>

---------

Signed-off-by: George Robinson <george.robinson@grafana.com>
2024-04-22 16:15:33 +02:00
..
Dockerfile Automate CSS-inlining for default HTML email template (#2798) 2022-01-03 17:33:53 +01:00
Makefile Automate CSS-inlining for default HTML email template (#2798) 2022-01-03 17:33:53 +01:00
default.tmpl Add summary to msteams notification (#3616) 2023-11-24 08:58:57 +00:00
email.html Update email.html to use "https://schema.org" instead of "https://schema.org" (#3420) 2023-08-03 09:33:32 +01:00
email.tmpl Update email assets after #3420 (#3440) 2023-08-04 14:42:18 +01:00
inline-css.js Automate CSS-inlining for default HTML email template (#2798) 2022-01-03 17:33:53 +01:00
template.go Add date and tz functions to templates (#3812) 2024-04-22 16:15:33 +02:00
template_test.go Add date and tz functions to templates (#3812) 2024-04-22 16:15:33 +02:00