[issue23494] adding timedelta to datetime object is not timezone aware
Akira Li
report at bugs.python.org
Tue Mar 3 00:53:20 CET 2015
Akira Li added the comment:
pytz explicitly documents this case (crossing DST boundary). There is
tz.normalize() method.
> the tzinfo object is responsible for handling daylight savings time. This looks like a bug in pytz.
Are any of tzinfo methods even called during `before + timedelta(days=2)`?
Also a DST transition is not the only reason the utc offset or tzname may
change.
----------
nosy: +akira
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23494>
_______________________________________
More information about the Python-bugs-list
mailing list