mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Use browser locale and timezone for date service
This commit is contained in:
parent
177354407a
commit
8c5948950d
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