Message342303
| Author | Piotr Kamoda |
|---|---|
| Recipients | Piotr Kamoda, SilentGhost |
| Date | 2019-05-13.10:07:26 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1557742046.94.0.470142328622.issue36899@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
Ok, now I see that naive object assumes my timezone in some cases. That's still mind-boggling that utcfromtimestamp returns an object that shows utc hour but when astimezone is applied it reverts without converting the hour to local timezone. See below as explanation: >>> datetime.utcfromtimestamp(1557395250).astimezone(pytz.utc).strftime('%Y-%m-%d %H:%M:%S %z %Z') '2019-05-09 07:47:30 +0000 UTC' >>> datetime.utcfromtimestamp(1557395250).astimezone(get_localzone()).strftime('%Y-%m-%d %H:%M:%S %z %Z') '2019-05-09 09:47:30 +0200 CEST' |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-05-13 10:07:26 | Piotr Kamoda | set | recipients: + Piotr Kamoda, SilentGhost |
| 2019-05-13 10:07:26 | Piotr Kamoda | set | messageid: <1557742046.94.0.470142328622.issue36899@roundup.psfhosted.org> |
| 2019-05-13 10:07:26 | Piotr Kamoda | link | issue36899 messages |
| 2019-05-13 10:07:26 | Piotr Kamoda | create | |