From f8f8299a31bfca29faa1f170bac18bafcb553ab4 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 21 Feb 2018 21:28:26 +0000 Subject: [PATCH] localtim/gmtime: correct which one is applying corrections Still need to sort the actual correction logic out --- Library/libs/gmtime.c | 2 +- Library/libs/localtim.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1