Message262239
With TZ=America/New_York,
>>> from datetime import *
>>> u = datetime(2015, 11, 1, 5, tzinfo=timezone.utc)
>>> t = u.astimezone()
>>> print(t)
2015-11-01 01:00:00-04:00
>>> print(t.astimezone())
2015-11-01 00:00:00-05:00
which is wrong - the second call to astimezone() should not change the timezone. Note that pure python code does not have this bug. (Try setiing sys.module['_datetime'] = None before running the code above.) |
|
Date |
User |
Action |
Args |
2016-03-23 05:25:07 | belopolsky | set | recipients:
+ belopolsky |
2016-03-23 05:25:06 | belopolsky | set | messageid: <1458710706.19.0.994284495334.issue26616@psf.upfronthosting.co.za> |
2016-03-23 05:25:05 | belopolsky | link | issue26616 messages |
2016-03-23 05:25:04 | belopolsky | create | |
|