libc/time: Update timezone by tzset in localtime_r

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I54d6aed8f6bc35c1a1d8156702ff71471c3f8066
This commit is contained in:
Xiang Xiao
2021-06-20 22:57:54 +08:00
committed by xiaoxiang
parent c9c9d84ca4
commit 212025c2ba
+1
View File
@@ -2583,6 +2583,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);
}