Patch #1490224: set time.altzone correctly on Cygwin.
This commit is contained in:
parent
9e5b5e4fe1
commit
378d592617
|
@ -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.
|
||||
|
||||
|
|
|
@ -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]));
|
||||
|
|
Loading…
Reference in New Issue