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 belopolsky
Recipients Dave Johansen, belopolsky, vstinner
Date 2017-08-16.23:00:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502924416.85.0.264748273769.issue31212@psf.upfronthosting.co.za>
In-reply-to
Content
> It still seems like this shouldn't give an error (especially when the timezone of the local machine is UTC)

This is the part where I agree with you.  I suspect the error in the UTC case is an artifact of PEP 495 fold calculations that require probing times ±24 hours around the time being converted.  For the times before timezones were invented (late 1800s?) we can safely assume that fold=0 always.  To be safe, I would set the fold cut-off at the year 1000.
History
Date User Action Args
2017-08-16 23:00:16belopolskysetrecipients: + belopolsky, vstinner, Dave Johansen
2017-08-16 23:00:16belopolskysetmessageid: <1502924416.85.0.264748273769.issue31212@psf.upfronthosting.co.za>
2017-08-16 23:00:16belopolskylinkissue31212 messages
2017-08-16 23:00:16belopolskycreate