[issue13413] time.daylight incorrect behavior in linux glibc
Alexander Belopolsky
report at bugs.python.org
Sun Jun 29 21:40:24 CEST 2014
Alexander Belopolsky added the comment:
> But python detect daylight flag as differences between January and July localtime.
This is the best we can do because time.daylight is a constant and this does not work in locations like Moscow where daylight rules were adopted ~ 30 years ago and later abandoned.
If you need better timezone support - take a look at datetime.datetime.astimezone() method.
----------
resolution: -> works for me
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13413>
_______________________________________
More information about the Python-bugs-list
mailing list