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 Dobatymo
Recipients Dobatymo, Paul Anton Letnes, Tiger-222, p-ganssle, steve.dower
Date 2020-10-14.01:11:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602637862.36.0.29855689809.issue36439@roundup.psfhosted.org>
In-reply-to
Content
> I've encountered an issue on anaconda python on windows 10 v1909 which I suspect is related. It looks like no dates in 1970 can be converted to datetime.timestamp():

Yeah... there is more related weirdness going on.

>>> datetime(1970, 1, 3).astimezone(timezone.utc)
datetime.datetime(1970, 1, 2, 16, 0, tzinfo=datetime.timezone.utc)
>>> datetime(1970, 1, 2).astimezone(timezone.utc)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 22] Invalid argument
>>> datetime(1970, 1, 1, 16, 0, tzinfo=timezone.utc)
datetime.datetime(1970, 1, 1, 16, 0, tzinfo=datetime.timezone.utc)
History
Date User Action Args
2020-10-14 01:11:02Dobatymosetrecipients: + Dobatymo, steve.dower, p-ganssle, Tiger-222, Paul Anton Letnes
2020-10-14 01:11:02Dobatymosetmessageid: <1602637862.36.0.29855689809.issue36439@roundup.psfhosted.org>
2020-10-14 01:11:02Dobatymolinkissue36439 messages
2020-10-14 01:11:02Dobatymocreate