summaryrefslogtreecommitdiffstats
path: root/newlib/libc/time/lcltime_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/time/lcltime_r.c')
-rw-r--r--newlib/libc/time/lcltime_r.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/time/lcltime_r.c b/newlib/libc/time/lcltime_r.c
index 9094e5d3a..8a69e40ee 100644
--- a/newlib/libc/time/lcltime_r.c
+++ b/newlib/libc/time/lcltime_r.c
@@ -31,6 +31,7 @@ _DEFUN (localtime_r, (tim_p, res),
year = res->tm_year + YEAR_BASE;
ip = __month_lengths[isleap(year)];
+ tzset ();
TZ_LOCK;
if (_daylight)
{