Skip to content

Fix: UTCTime Issues - #47

Merged
sephynox merged 2 commits into
mainfrom
fix/date-handling
Jun 11, 2026
Merged

sephynox merged 2 commits into
mainfrom
fix/date-handling

Conversation

@sephynox

Copy link
Copy Markdown
Contributor

Summary

This PR fixes the incorrect 2-digit year interpretation when decoding UTCTime. Chrono's %y parser pivots at 70 but RFC 5280 Section 4.1.2.5.1 requires the pivot at 50. This caused years 50-69 to decode into the wrong century (e.g. a 1969 date of birth was returned as 2069).

@sephynox
sephynox requested review from ezraripps and rkeene March 27, 2026 17:45
@sephynox sephynox self-assigned this Mar 27, 2026
@sephynox sephynox added the bug Something isn't working label Mar 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

@sephynox
sephynox requested a review from Srayman June 11, 2026 19:19
@sephynox
sephynox merged commit d8779be into main Jun 11, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants