1
0
Fork 0
mirror of synced 2024-10-03 10:46:27 +13:00

Merge pull request #3734 from appwrite/fix-console-locale

Fix console date service locale usage
This commit is contained in:
Christy Jacob 2022-08-30 12:47:47 +02:00 committed by GitHub
commit c58dd9f741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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