From: Jack Jansen Date: Mon, 3 Jul 2000 21:37:27 +0000 (+0000) Subject: Mac only: two epoch problem workarounds are no longer needed for GUSI X-Git-Tag: v2.0b1~1102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee398fa058555d3229e48c323247f60f6f560313;p=thirdparty%2FPython%2Fcpython.git Mac only: two epoch problem workarounds are no longer needed for GUSI >= 2.0.5. One still is:-( --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index aa0be8015f2e..984980c12313 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -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);