Skip to content

Count day and week boundaries across midnight gaps - #72

Closed
Narek-Khachikyan wants to merge 1 commit into
d3:mainfrom
Narek-Khachikyan:fix/midnight-gap-count
Closed

Narek-Khachikyan wants to merge 1 commit into
d3:mainfrom
Narek-Khachikyan:fix/midnight-gap-count

Conversation

@Narek-Khachikyan

Copy link
Copy Markdown

Summary

A skipped local midnight can make the next day or week count as zero boundaries. Round the timezone-corrected day/week quotient before the interval’s generic flooring so forward and reverse counts agree with the calendar boundaries.

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