diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/timemodule.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 90886f2..cfce06b 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -664,6 +664,13 @@ inittime(void) ins(d, "tzname", Py_BuildValue("(zz)", "", "")); #endif /* macintosh */ #endif /* HAVE_TM_ZONE */ +#ifdef __CYGWIN__ + tzset(); + ins(d, "timezone", PyInt_FromLong(_timezone)); + ins(d, "altzone", PyInt_FromLong(_timezone)); + ins(d, "daylight", PyInt_FromLong(_daylight)); + ins(d, "tzname", Py_BuildValue("(zz)", _tzname[0], _tzname[1])); +#endif /* __CYGWIN__ */ #endif /* !HAVE_TZNAME || __GLIBC__ */ } |