[issue9063] TZ examples in datetime.rst are incorrect

Alexander Belopolsky report at bugs.python.org
Wed Jun 23 19:37:29 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

The result given when Eastern tzinfo object is used is clearly wrong.  The timezone shift should not change the actual time, but

>>> x == x.astimezone(Eastern)
False

while

>>> x == x.astimezone(Local)
True

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9063>
_______________________________________


More information about the Python-bugs-list mailing list