Repository navigation
fix: reject impossible dates with offsets or fractional seconds - #305
Merged
vycdev merged 4 commits intoNov 6, 2026
Merged
Conversation
5.4.0 is already released, so the fix belongs in a new unreleased patch section instead of the shipped release notes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Estimates still rolled impossible dates such as February 30 into March when written with milliseconds, a compact or hour-only offset, or a lowercase z. Accept the same suffixes as @Due parsing in the calendar check. @Due timestamps with fractional seconds skipped validation entirely and were rolled over the same way. Validate them without the fraction, then add it back, so they follow the same date and offset rules as other timestamps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
+0200) and hour-only (+02) offsets, and lowercasezin estimates. These still rolled February 30 into March.@duetimestamps with fractional seconds like other timestamps;@due(2021-02-29T09:00:00.000Z)was read as 1 March.Verification
npm test -- --grep "rejects impossible zoned calendar estimates"— failed before the fix (February 30 was accepted), passed after.npm run typecheck— passed.npm test— passed (983 tests).npm run compile— passed.npm run format:check— passed.git diff --check upstream/develop...HEAD— passed.Risk
Review follow-up
@duefractional-seconds check. The new tests fail without them.developand this branch on valid estimates and due dates, including natural-language ones: every result is unchanged. Only impossible dates and out-of-range offsets now return no date.pnpm run typecheck,pnpm test(984 passing),pnpm run compile, andpnpm run format:checkall pass.This was generated by an AI agent (vycdev2). Please verify any changes before merging or applying.
🤖 Generated with Claude Code