From: Alan Cox Date: Wed, 21 Feb 2018 21:28:26 +0000 (+0000) Subject: localtim/gmtime: correct which one is applying corrections X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f8f8299a31bfca29faa1f170bac18bafcb553ab4;p=FUZIX.git localtim/gmtime: correct which one is applying corrections Still need to sort the actual correction logic out --- diff --git a/Library/libs/gmtime.c b/Library/libs/gmtime.c index e32145cf..92e2be52 100644 --- a/Library/libs/gmtime.c +++ b/Library/libs/gmtime.c @@ -61,6 +61,6 @@ void __tm_conv(struct tm *tmbuf, time_t * pt, int offset) struct tm *gmtime(time_t *timep) { static struct tm tmb; - __tm_conv(&tmb, timep, (int) (timezone / 60)); + __tm_conv(&tmb, timep, 0); return &tmb; } diff --git a/Library/libs/localtim.c b/Library/libs/localtim.c index 4605d4c9..2bec36b3 100644 --- a/Library/libs/localtim.c +++ b/Library/libs/localtim.c @@ -4,6 +4,6 @@ struct tm *localtime(time_t * timep) { static struct tm tmb; - __tm_conv(&tmb, timep, 0); + __tm_conv(&tmb, timep, (int) (timezone / 60)); return &tmb; }