From 8c5948950d32cf199c2f033b6a9d0b44c5b8e2c7 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 30 Aug 2022 21:36:03 +1200 Subject: [PATCH] Use browser locale and timezone for date service --- public/scripts/services/date.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/scripts/services/date.js b/public/scripts/services/date.js index ab35969455..e7d4e863b4 100644 --- a/public/scripts/services/date.js +++ b/public/scripts/services/date.js @@ -7,8 +7,7 @@ return null; } - return new Intl.DateTimeFormat('en-US', { - timeZone: 'UTC', + return new Intl.DateTimeFormat(navigator.languages, { hourCycle: 'h24', ...format }).format(new Date(datetime));