mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +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;
|
struct tm *p;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
#if defined(macintosh) && defined(USE_GUSI2)
|
#if defined(macintosh) && defined(USE_GUSI204)
|
||||||
when = when + GUSI_TO_MSL_EPOCH;
|
when = when + GUSI_TO_MSL_EPOCH;
|
||||||
#endif
|
#endif
|
||||||
p = function(&when);
|
p = function(&when);
|
||||||
|
|
@ -474,7 +474,7 @@ time_ctime(self, args)
|
||||||
if (!PyArg_Parse(args, "d", &dt))
|
if (!PyArg_Parse(args, "d", &dt))
|
||||||
return NULL;
|
return NULL;
|
||||||
tt = (time_t)dt;
|
tt = (time_t)dt;
|
||||||
#if defined(macintosh) && defined(USE_GUSI2)
|
#if defined(macintosh) && defined(USE_GUSI204)
|
||||||
tt = tt + GUSI_TO_MSL_EPOCH;
|
tt = tt + GUSI_TO_MSL_EPOCH;
|
||||||
#endif
|
#endif
|
||||||
p = ctime(&tt);
|
p = ctime(&tt);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue