summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-17 14:26:50 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-17 14:26:50 (GMT)
commit378d592617f5da7bb5e1611ca4e5980d086191f9 (patch)
treeb7353a5b94e147fbf528c1e0a708c013ba06ba3e /Modules
parent9e5b5e4fe1006bfb54cd673519df2220aa9b56a1 (diff)
downloadcpython-378d592617f5da7bb5e1611ca4e5980d086191f9.zip
cpython-378d592617f5da7bb5e1611ca4e5980d086191f9.tar.gz
cpython-378d592617f5da7bb5e1611ca4e5980d086191f9.tar.bz2
Patch #1490224: set time.altzone correctly on Cygwin.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/timemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index f089ecd..742d6bf 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]));