Message342300
Docs state that fromtimestamp returns a naive datetime object (https://docs.python.org/3.7/library/datetime.html#datetime.datetime.fromtimestamp) and not utcfromtimestamp. Perhaps it needs fixing.
Additionally, astimezone fails silently, I even tried
>>> datetime.utcfromtimestamp(1557395250).astimezone(pytz.utc).astimezone(get_localzone()).strftime('%Y-%m-%d %H:%M:%S %z %Z')
'2019-05-09 09:47:30 +0200 CEST'
Which looks weird, but why it ignores that function silently is also weird. |
|
Date |
User |
Action |
Args |
2019-05-13 09:44:46 | Piotr Kamoda | set | recipients:
+ Piotr Kamoda, SilentGhost |
2019-05-13 09:44:46 | Piotr Kamoda | set | messageid: <1557740686.16.0.0247376991028.issue36899@roundup.psfhosted.org> |
2019-05-13 09:44:46 | Piotr Kamoda | link | issue36899 messages |
2019-05-13 09:44:45 | Piotr Kamoda | create | |
|