mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
committed by
David Sidrane
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)
|
||||
{
|
||||
tzset();
|
||||
return localsub(timep, 0L, tmp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user