Skip to content

polyfill: parsing UTCOffset with sub-minute precision #3097

Open
@fabon-f

Description

@fabon-f
Temporal.ZonedDateTime.from("2025-01-01T00:00:00+00:0000[Europe/London]");

In Firefox Nightly, this code raises an error (Uncaught RangeError: can't parse zoned date-time: time separator ':' must be consistent). But reference polyfill doesn't raise an error.

My understanding is that spec requires UTCOffset with sub-minute precision should be hh:mm:ss or hhmmss formats, which means the polyfill doesn't align the spec.

https://tc39.es/proposal-temporal/#prod-UTCOffset

Metadata

Metadata

Assignees

No one assigned

    Labels

    no-spec-textPR can be ignored by implementorsnon-prod-polyfillTHIS POLYFILL IS NOT FOR PRODUCTION USE!test262

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions