This commit is contained in:
parent
ea41e18bd0
commit
be347ca896
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export const showDate = (tz: string, locale: Map<string, unknown>, date: Date) =
|
||||||
const localeInfo = new Intl.Locale(tz);
|
const localeInfo = new Intl.Locale(tz);
|
||||||
const intlTimezone = moment.tz.zonesForCountry(localeInfo.region ?? localeInfo.baseName);
|
const intlTimezone = moment.tz.zonesForCountry(localeInfo.region ?? localeInfo.baseName);
|
||||||
const formattedDate = new Intl.DateTimeFormat(tz, {
|
const formattedDate = new Intl.DateTimeFormat(tz, {
|
||||||
timeZone: intlTimezone ? intlTimezone[0] : "Etc/GMT",
|
timeZone: intlTimezone ? intlTimezone[0] : "Etc/UTC",
|
||||||
dateStyle: "short",
|
dateStyle: "short",
|
||||||
timeStyle: "medium",
|
timeStyle: "medium",
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue