Patches item #1490224, was opened at 2006-05-17 14:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1490224&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Christian Franke (chrfranke)
Assigned to: Nobody/Anonymous (nobody)
Summary: time.altzone does not include DST offset on Cygwin

Initial Comment:
On Cygwin (python-2.4.1-1) time.altzone is always set
equal to time.timezone.

Steps to reproduce:
$ python -c 'import time; time.tzset(); \
  print time.ctime(), time.daylight, \
  time.timezone, time.altzone'

Actual result (for CEST):
Sun May 14 13:46:55 2006 1 -3600 -3600

Expected result:
Sun May 14 13:46:55 2006 1 -3600 -7200

This causes failure of time conversions in e.g.
rdiff-backup-1.1.5

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.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1490224&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches

Reply via email to