From: Alan Cox Date: Wed, 21 Feb 2018 21:44:57 +0000 (+0000) Subject: localtim: should automatically call tzset X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=99b21082094b927b9ef5ddbb94725f02811c28d5;p=FUZIX.git localtim: should automatically call tzset --- diff --git a/Library/libs/localtim.c b/Library/libs/localtim.c index 2bec36b3..847c679a 100644 --- a/Library/libs/localtim.c +++ b/Library/libs/localtim.c @@ -4,6 +4,7 @@ struct tm *localtime(time_t * timep) { static struct tm tmb; + tzset(); __tm_conv(&tmb, timep, (int) (timezone / 60)); return &tmb; }