Message408149
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. |
|
Date |
User |
Action |
Args |
2021-12-09 18:12:26 | fdrake | set | recipients:
+ fdrake, barry, r.david.murray |
2021-12-09 18:12:25 | fdrake | set | messageid: <1639073545.99.0.633545342091.issue46027@roundup.psfhosted.org> |
2021-12-09 18:12:25 | fdrake | link | issue46027 messages |
2021-12-09 18:12:25 | fdrake | create | |
|