Message342297
See below code:
>>> datetime.utcfromtimestamp(1557395250).astimezone(get_localzone()).strftime('%Y-%m-%d %H:%M:%S %z %Z')
'2019-05-09 09:47:30 +0200 CEST'
>>> datetime.fromtimestamp(1557395250).astimezone(get_localzone()).strftime('%Y-%m-%d %H:%M:%S %z %Z')
'2019-05-09 11:47:30 +0200 CEST'
As you can see, utcfromtimestamp refuses to be 'timezoned', second one is correct. |
|
Date |
User |
Action |
Args |
2019-05-13 09:29:19 | Piotr Kamoda | set | recipients:
+ Piotr Kamoda |
2019-05-13 09:29:19 | Piotr Kamoda | set | messageid: <1557739759.84.0.347644793793.issue36899@roundup.psfhosted.org> |
2019-05-13 09:29:19 | Piotr Kamoda | link | issue36899 messages |
2019-05-13 09:29:19 | Piotr Kamoda | create | |
|