Python 2.4.1-1 time.altzone does not include DST offset
Christian Franke
Christian.Franke@t-online.de
Mon May 15 18:40:00 GMT 2006
> Python's time.altzone is equal to time.timezone, it should be
> time.timezone-3600 (for CEST)
>
> $ python -c 'import time; time.tzset(); print time.ctime(), \
> time.daylight, time.timezone, time.altzone, time.tzname'
> Sun May 14 13:46:55 2006 1 -3600 -3600 (' ', ' ')
On Cygwin, time.altzone is always set equal to time.timezone.
The attached patch should fix this for most timezones.
The function already uses the same heuristics in the !__CYGWIN__ &&
!HAVE_STRUCT_TM_TM_ZONE case.
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: python-altzone-patch.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060515/f41cec9e/attachment.txt>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list