time.add_days(1) jumps from 2013-05-01 to 1970-01-02 #17162
Labels
Bug
This tag is applied to issues which reports bugs.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Describe the bug
Using
V 0.3.2 9a86456
, I wrote the following program:and ran it on my Linux Mint Cinnamon 20.3 box:
v version && v run bug.v V 0.3.2 9a86456 BEFORE: 2013-05-01 00:00:00 is a Wednesday: Time{ year: 2013 month: 05 day: 01 hour: 00 minute: 00 second: 00 microsecond: 000000 unix: 0000000 } AFTER: 1970-01-02 00:00:00 is a Friday: Time{ year: 1970 month: 01 day: 02 hour: 00 minute: 00 second: 00 microsecond: 000000 unix: 0086400 }
Expected Behavior
I expected to see
2013-05-02
.Current Behavior
I got:
1970-01-02
.Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.3.2 9a86456
Environment details (OS name and version, etc.)
The text was updated successfully, but these errors were encountered: