Use browser locale and timezone for date service

This commit is contained in:
Jake Barnby 2022-08-30 21:36:03 +12:00
parent 177354407a
commit 8c5948950d
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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));