Closed guillaumelachaud closed 1 year ago
whoa! I did not know that. That's helpful to know. Yeah - maybe we should map it back to UTC? Thanks Guillaume.
I think it would make sense to map it back to UTC, yes.
I see that you added commit d51a5fe on a separate branch, which name hints at a major rewrite :-). Any plans to add a fix for this in master as well ?
Thanks!
sure. released as 7.4.1 cheers
On some systems with incorrect (missing) timezone setup,
Intl.DateTimeFormat().resolvedOptions().timeZone
will returnetc/unknown
, which in turn will throw an exception when trying to lookup the timezone:It feels like
etc/unknown
should be treated asundefined
insafeIntl()
, allowingguezzTz()
to gracefully fall back on UTC.Thoughts?