Skip to content

Temporal: Add coverage for getTimeZoneTransition edge cases#4466

Merged
gibson042 merged 1 commit intotc39:mainfrom
ptomato:utc-offset-transitions
May 14, 2025
Merged

Temporal: Add coverage for getTimeZoneTransition edge cases#4466
gibson042 merged 1 commit intotc39:mainfrom
ptomato:utc-offset-transitions

Conversation

@ptomato
Copy link
Contributor

@ptomato ptomato commented May 2, 2025

A "time zone transition" that is supposed to be returned by this method, is defined in the spec as an exact time where the UTC offset differs from that of the previous exact time value.

Implementations reported ambiguity around rule changes in the TZDB that did not actually result in a UTC offset change. For example, a time zone changing its abbreviation, or making DST permanent. Add a test case that checks that the method does not return faulty values that would not satisfy the spec requirement of a UTC offset change.

See: tc39/proposal-temporal#3105

@ptomato ptomato requested a review from a team as a code owner May 2, 2025 17:27
A "time zone transition" that is supposed to be returned by this method,
is defined in the spec as an exact time where the UTC offset differs
from that of the previous exact time value.

Implementations reported ambiguity around rule changes in the TZDB that
did not actually result in a UTC offset change. For example, a time zone
changing its abbreviation, or making DST permanent. Add a test case that
checks that the method does not return faulty values that would not
satisfy the spec requirement of a UTC offset change.

See: tc39/proposal-temporal#3105
@gibson042 gibson042 force-pushed the utc-offset-transitions branch from a366023 to 185f85c Compare May 14, 2025 16:27
@gibson042 gibson042 merged commit 118db52 into tc39:main May 14, 2025
11 checks passed
@ptomato ptomato deleted the utc-offset-transitions branch May 14, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants