test
Some checks failed
PR Check / lint-and-format (pull_request) Failing after 14s

This commit is contained in:
Mylloon 2024-09-27 14:42:46 +02:00
parent 3b090bdf92
commit a23294fef1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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] : "Factory", timeZone: intlTimezone ? intlTimezone[0] : "Greenwich",
dateStyle: "short", dateStyle: "short",
timeStyle: "medium", timeStyle: "medium",
}) })