From: Georg Brandl Date: Wed, 17 May 2006 14:26:50 +0000 (+0000) Subject: Patch #1490224: set time.altzone correctly on Cygwin. X-Git-Tag: v2.5b1~630 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=378d592617f5da7bb5e1611ca4e5980d086191f9;p=thirdparty%2FPython%2Fcpython.git Patch #1490224: set time.altzone correctly on Cygwin. --- diff --git a/Misc/NEWS b/Misc/NEWS index 20d4ff195ea9..4c7cb143d249 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -28,6 +28,8 @@ Core and builtins 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. diff --git a/Modules/timemodule.c b/Modules/timemodule.c index f089ecd8e950..742d6bf4ce2b 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -713,7 +713,7 @@ void inittimezone(PyObject *m) { #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]));