mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Mac only: two epoch problem workarounds are no longer needed for GUSI
>= 2.0.5. One still is:-(
This commit is contained in:
parent
72b82ba16d
commit
ee398fa058
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue