Skip to content

Can't create ZonedDateTime corresponding to time zone edge cases #73

@fabon-f

Description

@fabon-f
Temporal.ZonedDateTime.from("2000-10-08T01:00:00-01:00[America/Noronha]"); // Uncaught RangeError: Invalid TimeZone offset
Temporal.ZonedDateTime.from("2000-10-08T03:00:00-03:00[America/Boa_Vista]"); // same error

I believe the root cause is same to an upstream issue (tc39/proposal-temporal#3110). Searching a next offset transition with the window of 60 days can overlook an offset transition when offset transitions occurred twice within 60 days (which is pretty common in the history, even after 1970).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions