[Patches] [ python-Patches-1490224 ] time.altzone does not include DST offset on Cygwin

SourceForge.net noreply at sourceforge.net
Wed May 17 16:27:10 CEST 2006


Patches item #1490224, was opened at 2006-05-17 12:48
Message generated for change (Comment added) made by gbrandl
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: Closed
>Resolution: Accepted
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.


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

>Comment By: Georg Brandl (gbrandl)
Date: 2006-05-17 14:27

Message:
Logged In: YES 
user_id=849994

Accepted in rev. 46026.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1490224&group_id=5470


More information about the Patches mailing list