This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Python 2.4.1-1 time.altzone does not include DST offset
- From: Christian Franke <Christian dot Franke at t-online dot de>
- To: cygwin at cygwin dot com
- Date: Sun, 14 May 2006 14:02:12 +0200
- Subject: Python 2.4.1-1 time.altzone does not include DST offset
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 (' ', ' ')
Possible side effect of the blank and equal tzname strings (caused by
the timezone names returned by german XP) ?
Cygwin's runtime timezone offset looks good:
$ date '+%c %z "%Z"'
Sun May 14 13:46:55 2006 +0200 " "
This possible python runtime bug causes bad time conversions in
rdiff-backup-1.1.5 ([Maybe ITP] ;-)
Christian
--
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/