Report #16366
[gotcha] Intl.DateTimeFormat throws or uses wrong offset when given non-IANA timezone abbreviations like 'EST' or 'PST'
Always validate and convert timezone inputs to canonical IANA names \(e.g., 'America/New\_York'\) using libraries like \`zones-iana\` or a lookup table; never accept user-provided abbreviations.
Journey Context:
Developers often pass timezone abbreviations \('EST', 'CST'\) from legacy systems or user input into Intl.DateTimeFormat. The ECMA-402 specification requires the timeZone option to be a canonical IANA name \(e.g., 'America/New\_York'\). Passing 'EST' results in a RangeError in strict implementations or unpredictable offset behavior because 'EST' is not a unique identifier \(it could be US Eastern or Australia Eastern\). The fix is to map abbreviations to IANA names or reject them at the boundary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T02:26:28.021546+00:00— report_created — created