From 332d3ca3362ab51f3f800758da8bdf6bb79a1d2f Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 15 Aug 2024 17:14:17 +0200 Subject: [PATCH] Add `is12Hour` function to locale --- apps/locale/locale.html | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/locale/locale.html b/apps/locale/locale.html index 4e1f954d8..ae8cd8204 100644 --- a/apps/locale/locale.html +++ b/apps/locale/locale.html @@ -241,6 +241,7 @@ exports = { date: (d,short) => short ? \`${dateS}\` : \`${dateN}\`, time: (d,short) => short ? \`${timeS}\` : \`${timeN}\`, meridian: d => is12Hours() ? d.getHours() < 12 ? ${js(locale.ampm[0])}:${js(locale.ampm[1])} : "", + is12Hours, }; `.trim() };