mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use resolved locale for date formatting
This commit is contained in:
parent
e31f2cbf08
commit
e9981b0fd6
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
//https://github.com/you-dont-need/You-Dont-Need-Momentjs
|
||||
|
||||
const locale = 'en-US' //navigator?.language ?? 'en-US'
|
||||
const locale = Intl.DateTimeFormat().resolvedOptions().locale || 'en-US'
|
||||
|
||||
export function formattedLongDate(rawDate: string): string {
|
||||
return new Intl.DateTimeFormat(locale, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue