diff options
author | aiju <aiju@phicode.de> | 2011-06-04 12:02:42 +0200 |
---|---|---|
committer | aiju <aiju@phicode.de> | 2011-06-04 12:02:42 +0200 |
commit | 67daf453a755bb6fc15a69e49784f1bdd66eaa61 (patch) | |
tree | a4eb5862bc93ab643e86a176cde699e9c14b3aa0 /sys/src/cmd/python | |
parent | 13ae620a451fc0941810b7617e6efaeceb8473c6 (diff) |
fixed tzset(), hopefully hg timezone bug should be fixed now
Diffstat (limited to 'sys/src/cmd/python')
-rw-r--r-- | sys/src/cmd/python/Modules/timemodule.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/src/cmd/python/Modules/timemodule.c b/sys/src/cmd/python/Modules/timemodule.c index 7a1e44605..bded1af27 100644 --- a/sys/src/cmd/python/Modules/timemodule.c +++ b/sys/src/cmd/python/Modules/timemodule.c @@ -678,8 +678,7 @@ void inittimezone(PyObject *m) { PyModule_AddIntConstant(m, "timezone", _timezone); #else /* !PYOS_OS2 */ #ifdef PLAN9APE - //PyModule_AddIntConstant(m, "timezone", timezone); - PyModule_AddIntConstant(m, "timezone", 0); + PyModule_AddIntConstant(m, "timezone", timezone); #endif #endif /* PYOS_OS2 */ #ifdef HAVE_ALTZONE @@ -689,14 +688,12 @@ void inittimezone(PyObject *m) { PyModule_AddIntConstant(m, "altzone", _timezone-3600); #else /* !PYOS_OS2 */ #ifdef PLAN9APE - //PyModule_AddIntConstant(m, "altzone", timezone-3600); - PyModule_AddIntConstant(m, "altzone", 3600); + PyModule_AddIntConstant(m, "altzone", timezone-3600); #endif #endif /* PYOS_OS2 */ #endif #ifdef PLAN9APE - //PyModule_AddIntConstant(m, "daylight", daylight); - PyModule_AddIntConstant(m, "daylight", 0); + PyModule_AddIntConstant(m, "daylight", daylight); PyModule_AddObject(m, "tzname", Py_BuildValue("(zz)", tzname[0], tzname[1])); #endif |