Merge pull request #3734 from appwrite/fix-console-locale
Fix console date service locale usage
This commit is contained in:
commit
c58dd9f741
1 changed files with 1 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue