This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky
Date 2016-03-23.05:25:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458710706.19.0.994284495334.issue26616@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2016-03-23 05:25:07belopolskysetrecipients: + belopolsky
2016-03-23 05:25:06belopolskysetmessageid: <1458710706.19.0.994284495334.issue26616@psf.upfronthosting.co.za>
2016-03-23 05:25:05belopolskylinkissue26616 messages
2016-03-23 05:25:04belopolskycreate