-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Julia fails to run _before_ epoch #34056
Comments
Maybe there's a locale problem?
|
I can confirm it's the locale. I'll close this in a few hours if nobody think that the error should be addressed |
Julia should crash even if the locale is set to something weird. Can you give more reproduction details? |
(with locale I meant time zone, date: Mon 09 Dec 2019 05:21:45 PM CET) faketime -f '1970-01-01 00:00:00' julia -E 'time()' -> error in the OP So: julia does not like time before the epoch (negative time?). However, date does work (NOTE: 1900) Mon 01 Jan 1900 12:00:00 AM CET |
Also, it will become unusable in less than 100years from now (2106-02-07). That means either that The 100 was lying or the bug will be fixed 🤣 |
Yep, that's why I linked it 😕 |
The issue is in libc.jl in the line:
Before the epoch, |
Thanks, I did not have time to try it. Does it fix also the opposite (from date 2106-02-07 on)? |
Yes, the opposite will also work. $ faketime "10000-01-01 00:00:00" ./julia -E 'time()'
2.5340231880103674e11 |
Julia crashes on start when time is 0 (1970-01-01):
(faketime 1970-01-02) does work
The text was updated successfully, but these errors were encountered: