nuttx/libs/libc/time
dongjiuzhu1 fbd6484532 libc/localtime: fix the timezone error caused by minor error
align: https://github.com/eggert/tz/blob/main/localtime.c

correct timeone in test:

server> timedatectl set-timezone Pacific/Auckland
server> timedatectl
      TimeZone: NZDT, 46800
    Local time: Sat, Oct 21 21:47:34 2023 NZDT
Universal time: Sat, Oct 21 08:47:34 2023 UTC
      RTC time: Sat, Oct 21 08:47:35 2023

error timezone:

server> timedatectl set-timezone Pacific/Auckland
server> timedatectl
      TimeZone: NZST, 43200
    Local time: Sat, Oct 21 20:52:27 2023 NZST
Universal time: Sat, Oct 21 08:52:27 2023 UTC
      RTC time: Sat, Oct 21 08:52:27 2023

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-10-26 00:10:04 +08:00
..
CMakeLists.txt
Kconfig
lib_asctime.c
lib_asctimer.c
lib_calendar2utc.c
lib_ctime.c
lib_ctimer.c
lib_dayofweek.c
lib_daysbeforemonth.c
lib_difftime.c
lib_gethrtime.c
lib_gettimeofday.c
lib_gmtime.c
lib_gmtimer.c
lib_isleapyear.c
lib_localtime.c
lib_nanosleep.c
lib_settimeofday.c
lib_strftime.c
lib_strptime.c
lib_time.c
lib_timegm.c
lib_timespec_get.c
Make.defs