Skip to content

Commit

Permalink
Normative: Align time zone IDs across engines
Browse files Browse the repository at this point in the history
This PR resolves #825 by adding spec text that more clearly defines
how ECMA-402 implementations should decide which IANA time zone IDs
should be primary vs. non-primary.

This PR implements "Option C" in #825 by deterministically defining
ECMAScript's exceptions from the IANA Time Zone Database's defaults,
and then pointing implementers at ICU as a convenient implementation
of those exceptions.

This PR also accommodates to web reality by aligning the 402 spec text
with the existing behavior of ICU and CLDR while providing deterministic
rules that can guide future changes in CLDR data.

Finally, this PR introduces a new StringSplitToList abstract operation
and uses it to simplify AvailableNamedTimeZoneIdentifiers and
IsWellFormedUnitIdentifier.
  • Loading branch information
justingrant authored and ben-allen committed Aug 1, 2024
1 parent 08dcd00 commit 602aaf0
Showing 1 changed file with 139 additions and 25 deletions.
Loading

0 comments on commit 602aaf0

Please sign in to comment.