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:
parent
d2c33fc180
commit
aa202adaaa
@ -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)
|
FAR struct tm *localtime_r(FAR const time_t * const timep, struct tm *tmp)
|
||||||
{
|
{
|
||||||
|
tzset();
|
||||||
return localsub(timep, 0L, tmp);
|
return localsub(timep, 0L, tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user