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 a year 2038 issue #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bmwiedemann
Copy link

This bug was found while working on reproducible builds for openSUSE.

Background:
As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future.
The usual offset is +16 years, because that is how long I expect some software will be used in some places.
This showed up failing tests in our package build.
See https://reproducible-builds.org/ for why this matters.

the utcnow assumtion in the test failed for dates after 2038-01-19
because the date wraps back to 1902

This bug was found while working on reproducible builds for openSUSE.
Copy link

@CoolCat467 CoolCat467 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, simply using 64 bit integers instead will work for the next 2 billion years

@bmwiedemann
Copy link
Author

Hi, do you merge this patch or make some alternative?

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.

2 participants