]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mac only: two epoch problem workarounds are no longer needed for GUSI
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 3 Jul 2000 21:37:27 +0000 (21:37 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 3 Jul 2000 21:37:27 +0000 (21:37 +0000)
>= 2.0.5. One still is:-(

Modules/timemodule.c

index aa0be8015f2e3316d724f16908cf19aabcc27cc5..984980c1231324f7764a624d8c1d74e90659ebc6 100644 (file)
@@ -259,7 +259,7 @@ time_convert(when, function)
 {
        struct tm *p;
        errno = 0;
-#if defined(macintosh) && defined(USE_GUSI2)
+#if defined(macintosh) && defined(USE_GUSI204)
        when = when + GUSI_TO_MSL_EPOCH;
 #endif
        p = function(&when);
@@ -474,7 +474,7 @@ time_ctime(self, args)
        if (!PyArg_Parse(args, "d", &dt))
                return NULL;
        tt = (time_t)dt;
-#if defined(macintosh) && defined(USE_GUSI2)
+#if defined(macintosh) && defined(USE_GUSI204)
        tt = tt + GUSI_TO_MSL_EPOCH;
 #endif
        p = ctime(&tt);