Skip to content

Fix epoch-second timestamp overflow - #721

Open
fallintoplace wants to merge 1 commit into
aws:mainfrom
fallintoplace:fix/epoch-seconds-overflow
Open

fallintoplace wants to merge 1 commit into
aws:mainfrom
fallintoplace:fix/epoch-seconds-overflow

Conversation

@fallintoplace

Copy link
Copy Markdown

What

  • Fix epoch-second conversion for dates outside the nanosecond range.

Why

  • Year 2500 currently becomes year 1915.
  • Zero time also becomes a different date.

Implementation

  • Use Unix milliseconds for formatting and parsing.
  • Keep UTC and truncation toward zero.
  • Add range regressions and a runtime changelog.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@fallintoplace
fallintoplace requested review from a team as code owners October 4, 2026 12:06
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