Message300338
This error is a side effect of the implementation of the PEP 495. In your timezone, datetime(1, 1, 1, 0, 0, 0).timestamp() creates an internal timestamp with year=0. The problem is that the internal function ymd_to_ord() doesn't support year=0:
/* This is incorrect if year <= 0; we really want the floor
* here. But so long as MINYEAR is 1, the smallest year this
* can see is 1.
*/
assert (year >= 1);
> This worked in Python 3.6.0 and before: (...)
The question is if the result was correct before? |
|
Date |
User |
Action |
Args |
2017-08-16 08:59:00 | vstinner | set | recipients:
+ vstinner, belopolsky, Dave Johansen |
2017-08-16 08:58:59 | vstinner | set | messageid: <1502873939.99.0.616489780277.issue31212@psf.upfronthosting.co.za> |
2017-08-16 08:58:59 | vstinner | link | issue31212 messages |
2017-08-16 08:58:59 | vstinner | create | |
|