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
+1 -2
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));