Customizable Date/Time Format #1146
Replies: 1 comment
|
@NOBODY12021, this is already possible for locale-based date and time formats, although it isn’t very obvious from the current documentation. Add a top-level i18n:
locale: en-GB
If you already have translated labels configured, add i18n:
locale: en-GB
allSystemsOperational: All systems are operational
incidentReport: "Incident #$NUMBER report"Upptime’s status page passes this value into JavaScript’s A few useful examples are: i18n:
locale: en-GB # 28/08/2026, normally with a 24-hour clocki18n:
locale: de-DE # 28.08.2026, normally with a 24-hour clocki18n:
locale: en-US-u-hc-h23 # US date order, but force a 24-hour clockThis controls formatting through locale conventions rather than accepting an arbitrary pattern. A completely custom format such as |
Uh oh!
There was an error while loading. Please reload this page.
It would be very nice to be able to configure the date/time format in upptimerc.yml, for example the ability to switch to day/month/year instead of month/day/year, or use a 24h clock instead of am and pm.
All reactions