From ee398fa058555d3229e48c323247f60f6f560313 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 3 Jul 2000 21:37:27 +0000 Subject: [PATCH] Mac only: two epoch problem workarounds are no longer needed for GUSI >= 2.0.5. One still is:-( --- Modules/timemodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/timemodule.c b/Modules/timemodule.c index aa0be8015f..984980c123 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); -- 2.40.0