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 David Sidrane
parent d2c33fc180
commit aa202adaaa
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}