diff --git a/libs/libc/time/lib_localtime.c b/libs/libc/time/lib_localtime.c index 5164c7ab09..e089482387 100644 --- a/libs/libc/time/lib_localtime.c +++ b/libs/libc/time/lib_localtime.c @@ -2584,5 +2584,10 @@ time_t mktime(FAR struct tm *tmp) time_t timegm(FAR struct tm *tmp) { + if (tmp != NULL) + { + tmp->tm_isdst = 0; + } + return time1(tmp, gmtsub, 0L); }