Skip to content

Handle "completely contained within geographic area" time zone rules #627

@Manishearth

Description

@Manishearth

https://tc39.es/ecma402/#sec-use-of-iana-time-zone-database lists three rules. The first has been handled since #463, the second was handled in #624.

The third is this:

Any Link name that is not listed in the “TZ” column of file zone.tab and that represents a geographical area entirely contained within the territory of a single ISO 3166-1 Alpha-2 country code must resolve to a primary identifier that also represents a geographical area entirely contained within the territory of the same country code. For example, "Atlantic/Jan_Mayen" must resolve to "Arctic/Longyearbyen".

This cannot be easily done in a data-driven way using tzdb, I think. The spec recommends using timezone.xml. Perhaps we can also manually identify these discrepancies and implement them, since IIRC timezone.xml is out of date in other ways.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions