diff --git a/libs/libc/time/lib_localtime.c b/libs/libc/time/lib_localtime.c index 62769e5696..abd71ea97a 100644 --- a/libs/libc/time/lib_localtime.c +++ b/libs/libc/time/lib_localtime.c @@ -2584,6 +2584,7 @@ FAR struct tm *localtime(FAR const time_t * const timep) FAR struct tm *localtime_r(FAR const time_t * const timep, struct tm *tmp) { + tzset(); return localsub(timep, 0L, tmp); }