Skip to content

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Sep 12, 2022

@ringabout
Copy link
Member Author

I reproduce the issue by setting the date on my computer to year 2038.

@Varriount
Copy link
Contributor

Is it possible to add a test for this?

@ringabout
Copy link
Member Author

I guess not too easy, at least we probably can get one at openSUSE :)

@ringabout ringabout mentioned this pull request Sep 15, 2022
@metagn
Copy link
Collaborator

metagn commented Sep 17, 2022

Can we use the date command to test it?

edit: lol, the last commit says it was made on Sep 12, 2038

@Varriount
Copy link
Contributor

I'm ok with either:

  • Matching whatever behavior MongoDB exhibits (as long as the behavior isn't "raise an exception")
  • Increasing the underlying integer size to 64 bits.

@Araq
Copy link
Member

Araq commented Sep 21, 2022

I say, please increase the underlying integer size to 64 bits.

@ringabout
Copy link
Member Author

Sure

@ringabout
Copy link
Member Author

Once again, I set the system date to 2038 and there is no problem.

@Araq Araq added the merge_when_passes_CI mergeable once green label Sep 22, 2022
@ringabout ringabout merged commit db8a62d into devel Sep 22, 2022
@ringabout ringabout deleted the pr_int32 branch September 22, 2022 13:15
@github-actions
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from db8a62d

Hint: mm: orc; threads: on; opt: speed; options: -d:release
164054 lines; 12.595s; 842.328MiB peakmem

ringabout added a commit that referenced this pull request Sep 22, 2022
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
…g#20338)

* Revert "fixes  nim-lang#20285; prevent oid time overflow at year 2038"

This reverts commit dfcdb6e.

* increase time to 64 bits and clean up

* add testcase

* inline consts

* add a changelog

* fixes  nim-lang#20285; prevent oid time overflow at year 2038
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge_when_passes_CI mergeable once green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests fail in 2038
4 participants