Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: date underflow / overflow and utc #464

Merged
merged 1 commit into from
Nov 28, 2022
Merged

Conversation

stevenh
Copy link
Collaborator

@stevenh stevenh commented Nov 28, 2022

Use time.UnixMilli instead of UnixNano for time calculations to avoid underflow / overflow issues.

BREAKING CHANGE: Use a GMT fixed time zone for UTC to mimic toUTCString behaviour of Javascript which outputs in GMT not UTC.

Fixes #302

Use time.UnixMilli instead of UnixNano for time calculations to avoid
underflow / overflow issues.

BREAKING CHANGE: Use a GMT fixed time zone for UTC to mimic toUTCString
behaviour of Javascript which outputs in GMT not UTC.

Fixes #302
@stevenh stevenh merged commit aeda017 into master Nov 28, 2022
@stevenh stevenh deleted the fix/date-overflow branch November 28, 2022 13:00
sg3des pushed a commit to sg3des/otto that referenced this pull request Jul 17, 2023
Use time.UnixMilli instead of UnixNano for time calculations to avoid
underflow / overflow issues.

BREAKING CHANGE: Use a GMT fixed time zone for UTC to mimic toUTCString
behaviour of Javascript which outputs in GMT not UTC.

Fixes robertkrimen#302
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.

Dates far in the past or future are incorrect
1 participant