Skip to content

Reject overflowing RFC3339 timezone offsets - #3563

Closed
max-sixty wants to merge 1 commit into
mainfrom
audit/rfc3339-offsets
Closed

max-sixty wants to merge 1 commit into
mainfrom
audit/rfc3339-offsets

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Python normalizes offsets such as +00:60 to +01:00. Leaf now bounds timezone hours and minutes before parsing, so overflowing timezone offsets cannot pass a date-time contract.

Validation: the new malformed-minute cases failed against main; all 104 registry-door tests pass with this change. Existing valid offset boundaries remain accepted.

This was referenced Oct 22, 2026
@max-sixty

Copy link
Copy Markdown
Owner Author

Closing: +00:60 parses to a well-defined instant (+01:00), and no agent writes it. A stricter regex, comment and four cases guard a spelling nobody produces; per AGENTS.md we add checks only where a failure would pass silently into something the user relies on.

This was written by Claude Code on behalf of max-sixty

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.

1 participant