Ad Widget

Collapse

Change Date Format in Alert Emails to DD.MM.YYYY

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mstyle
    Junior Member
    • May 2025
    • 1

    #1

    Change Date Format in Alert Emails to DD.MM.YYYY

    Hi,

    Hello,

    In Zabbix alert emails (both problem and resolved notifications), the date format is shown as YYYY-MM-DD by default.
    I would like to display the date in DD.MM.YYYY format instead (e.g., 01.05.2025).

    I'm currently using HTML email templates, and I include macros like {{EVENT.DATE}} and {{EVENT.TIME}}.
    I read that it's possible to format time using the .fmttime() function (e.g., {{TIME}.fmttime(%d.%m.%Y)}), but I'm not sure if this is supported in email templates.

    Environment:
    • OS: Rocky Linux
    • Zabbix Version: 7.2.6
    • Email format: HTML-based

    My questions:
    1. Is it possible to change the date format in alert emails to DD.MM.YYYY?
    2. Can this be done directly in the template using a macro, or does it require a deeper backend/frontend change?
    3. Is the .fmttime() macro function supported in notification emails?

    Any guidance would be greatly appreciated.
    Thank you!
Working...