[New-bugs-announce] [issue13413] time.daylight incorrect behavior in linux glibc

Dmitry Balabanov report at bugs.python.org
Wed Nov 16 08:49:24 CET 2011

New submission from Dmitry Balabanov <dimonb at gmail.com>:

In Europe/Moscow timezone:
>> import time
>> time.daylight
>>> time.timezone

But if compile and run attached program result would be:
timezone: -14400, daylight: 0

Daylight is not applicable in Europe/Moscow timezone from this winter. But python detect daylight flag as differences between January and July localtime. 

Why not tzset()?

files: daylight.c
messages: 147752
nosy: dimonb
priority: normal
severity: normal
status: open
title: time.daylight incorrect behavior in linux glibc
type: behavior
Added file: http://bugs.python.org/file23704/daylight.c

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list