This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients BreamoreBoy, amaury.forgeotdarc, belopolsky, dimonb, lemburg
Date 2014-06-29.19:40:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404070824.12.0.642294760419.issue13413@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2014-06-29 19:40:24belopolskysetrecipients: + belopolsky, lemburg, amaury.forgeotdarc, BreamoreBoy, dimonb
2014-06-29 19:40:24belopolskysetmessageid: <1404070824.12.0.642294760419.issue13413@psf.upfronthosting.co.za>
2014-06-29 19:40:24belopolskylinkissue13413 messages
2014-06-29 19:40:23belopolskycreate