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 fdrake
Recipients barry, fdrake, r.david.murray
Date 2021-12-09.18:12:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639073545.99.0.633545342091.issue46027@roundup.psfhosted.org>
In-reply-to
Content
A local time offset of '-0000' is not handled the same way as an offset of '+0000', but I'd expect it would be:

>>> import email.utils
>>> 
>>> email.utils.parsedate_to_datetime('9 Dec 2021 08:52:04 -0000')
datetime.datetime(2021, 12, 9, 8, 52, 4)
>>> email.utils.parsedate_to_datetime('9 Dec 2021 08:52:04 +0000')
datetime.datetime(2021, 12, 9, 8, 52, 4, tzinfo=datetime.timezone.utc)

I observe the same behavior on Python 3.9.9 and 3.10.1.
History
Date User Action Args
2021-12-09 18:12:26fdrakesetrecipients: + fdrake, barry, r.david.murray
2021-12-09 18:12:25fdrakesetmessageid: <1639073545.99.0.633545342091.issue46027@roundup.psfhosted.org>
2021-12-09 18:12:25fdrakelinkissue46027 messages
2021-12-09 18:12:25fdrakecreate