Return timezone string, not match

This commit is contained in:
Jon Staab
2025-02-25 09:27:20 -08:00
parent 53db096e06
commit 43255bcb74
+1 -1
View File
@@ -2,7 +2,7 @@ import {now, int, DAY, HOUR, MINUTE} from "@welshman/lib"
export const LOCALE = new Intl.DateTimeFormat().resolvedOptions().locale
export const TIMEZONE = new Date().toString().match(/GMT[^\s]+/)
export const TIMEZONE = new Date().toString().match(/GMT[^\s]+/)![0]
export const secondsToDate = (ts: number) => new Date(ts * 1000)