[Python-checkins] r46026 - in python/trunk: Misc/NEWS Modules/timemodule.c

georg.brandl python-checkins at python.org
Wed May 17 16:26:51 CEST 2006


Author: georg.brandl
Date: Wed May 17 16:26:50 2006
New Revision: 46026

Modified:
   python/trunk/Misc/NEWS
   python/trunk/Modules/timemodule.c
Log:
Patch #1490224: set time.altzone correctly on Cygwin.



Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Wed May 17 16:26:50 2006
@@ -28,6 +28,8 @@
 Extension Modules
 -----------------
 
+- Patch #1490224: time.altzone is now set correctly on Cygwin.
+
 - Patch #1435422: zlib's compress and decompress objects now have a
   copy() method.
 

Modified: python/trunk/Modules/timemodule.c
==============================================================================
--- python/trunk/Modules/timemodule.c	(original)
+++ python/trunk/Modules/timemodule.c	Wed May 17 16:26:50 2006
@@ -713,7 +713,7 @@
 #ifdef __CYGWIN__
 	tzset();
 	PyModule_AddIntConstant(m, "timezone", _timezone);
-	PyModule_AddIntConstant(m, "altzone", _timezone);
+	PyModule_AddIntConstant(m, "altzone", _timezone-3600);
 	PyModule_AddIntConstant(m, "daylight", _daylight);
 	PyModule_AddObject(m, "tzname",
 			   Py_BuildValue("(zz)", _tzname[0], _tzname[1]));


More information about the Python-checkins mailing list