[issue23494] adding timedelta to datetime object is not timezone aware

2015-03-02 Thread Akira Li
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(da

[issue23494] adding timedelta to datetime object is not timezone aware

2015-02-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23494] adding timedelta to datetime object is not timezone aware

2015-02-20 Thread R. David Murray
R. David Murray added the comment: the tzinfo object is responsible for handling daylight savings time. This looks like a bug in pytz. -- components: +Library (Lib) -Distutils nosy: +belopolsky, r.david.murray -dstufft, eric.araujo ___ Python tracke

[issue23494] adding timedelta to datetime object is not timezone aware

2015-02-20 Thread Gil Shotan
New submission from Gil Shotan: I encountered a strange bug involving timezone aware datetime objects and timedelta objects. The crux of the matter is that daylight savings time is considered a different timezone, and therefore the timezone of a datetime object is date dependent. However, add