Skip to content

Preserve repeated local times when offsetting by zero - #71

Closed
Narek-Khachikyan wants to merge 1 commit into
d3:mainfrom
Narek-Khachikyan:fix/zero-offset-dst
Closed

Narek-Khachikyan wants to merge 1 commit into
d3:mainfrom
Narek-Khachikyan:fix/zero-offset-dst

Conversation

@Narek-Khachikyan

Copy link
Copy Markdown

Summary

During a DST fallback, offsetting a repeated local time by zero can move its instant back an hour. Return the copied date without invoking a local calendar setter when the floored step is zero.

Evidence

The regression fails against the unchanged base and passes with this fix. Full test suite and lint pass.

Merge Danger

Door: Two-way. Blast Radius: Time intervals.

@Narek-Khachikyan Narek-Khachikyan closed this by deleting the head repository Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant