diff options
Diffstat (limited to 'pages/schedules.inc')
-rw-r--r-- | pages/schedules.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pages/schedules.inc b/pages/schedules.inc index bff1822..fae5984 100644 --- a/pages/schedules.inc +++ b/pages/schedules.inc @@ -160,7 +160,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/composer/ical/ical.php"; let time1 = (new Intl.DateTimeFormat('en-US', { timeZone: 'Europe/Paris', hour: 'numeric', - minute: 'numeric', + minute: '2-digit', hour12: true })).format(new Date()); @@ -170,7 +170,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/composer/ical/ical.php"; let time2 = (new Intl.DateTimeFormat('en-US', { timeZone: 'Europe/London', hour: 'numeric', - minute: 'numeric', + minute: '2-digit', hour12: true })).format(new Date()); @@ -180,7 +180,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/composer/ical/ical.php"; let time3 = (new Intl.DateTimeFormat('en-US', { timeZone: 'America/Chicago', hour: 'numeric', - minute: 'numeric', + minute: '2-digit', hour12: true })).format(new Date()); @@ -190,13 +190,13 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/composer/ical/ical.php"; document.getElementById("live-time-other1").innerText = (new Intl.DateTimeFormat('en-US', { timeZone: 'America/Anchorage', hour: 'numeric', - minute: 'numeric', + minute: '2-digit', hour12: true })).format(new Date()); document.getElementById("live-time-other2").innerText = (new Intl.DateTimeFormat('en-US', { timeZone: 'America/Vancouver', hour: 'numeric', - minute: 'numeric', + minute: '2-digit', hour12: true })).format(new Date()); } |