This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Dave Johansen, belopolsky, vstinner
Date 2017-08-16.08:58:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502873939.99.0.616489780277.issue31212@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2017-08-16 08:59:00vstinnersetrecipients: + vstinner, belopolsky, Dave Johansen
2017-08-16 08:58:59vstinnersetmessageid: <1502873939.99.0.616489780277.issue31212@psf.upfronthosting.co.za>
2017-08-16 08:58:59vstinnerlinkissue31212 messages
2017-08-16 08:58:59vstinnercreate