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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13413>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to