Confused about timezones

Skip Montanaro skip at pobox.com
Wed Oct 23 15:00:50 EDT 2013


>>>> LOCAL_TZ.localize(dt1).utcoffset()
> datetime.timedelta(-1, 68400)
>>>> LOCAL_TZ.localize(dt2).utcoffset()
> datetime.timedelta(-1, 64800)
>
> Why is the UTC offset the same for both datetime objects despite the
> presence/absence of Daylight Savings?

Brain freeze! A quick glance told me they were the same, when they
actually are different (68400, 64800). Sorry for the needless noise.

Skip



More information about the Python-list mailing list