tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
log effectivetz and locale
awarm.space
4 months ago
558d9b7c
2748feba
+1
1 changed file
expand all
collapse all
unified
split
src
hooks
useLocalizedDate.ts
+1
src/hooks/useLocalizedDate.ts
···
43
43
? language?.split(",")[0]?.split(";")[0]?.trim() || "en-US"
44
44
: Intl.DateTimeFormat().resolvedOptions().locale;
45
45
46
46
+
console.log({ effectiveLocale, effectiveTimezone });
46
47
try {
47
48
return dateTime.toLocaleString(options, { locale: effectiveLocale });
48
49
} catch (error) {