mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user