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 build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig
lib_asctime.c
lib_asctimer.c clock: Move the content of include/nuttx/time.h to include/nuttx/clock.h 2023-06-26 19:14:08 +03:00
lib_calendar2utc.c clock: Move the content of include/nuttx/time.h to include/nuttx/clock.h 2023-06-26 19:14:08 +03:00
lib_ctime.c
lib_ctimer.c
lib_dayofweek.c clock: Move the content of include/nuttx/time.h to include/nuttx/clock.h 2023-06-26 19:14:08 +03:00
lib_daysbeforemonth.c clock: Move the content of include/nuttx/time.h to include/nuttx/clock.h 2023-06-26 19:14:08 +03:00
lib_difftime.c
lib_gethrtime.c
lib_gettimeofday.c
lib_gmtime.c clock: Move the content of include/nuttx/time.h to include/nuttx/clock.h 2023-06-26 19:14:08 +03:00
lib_gmtimer.c clock: Move the content of include/nuttx/time.h to include/nuttx/clock.h 2023-06-26 19:14:08 +03:00
lib_isleapyear.c clock: Move the content of include/nuttx/time.h to include/nuttx/clock.h 2023-06-26 19:14:08 +03:00
lib_localtime.c libc/localtime: fix the timezone error caused by minor error 2023-10-26 00:10:04 +08:00
lib_nanosleep.c sched/signal/sig_nanosleep: fix the clock_nanosleep posix case 2023-07-23 22:02:03 -07:00
lib_settimeofday.c libc/settimeofday: correct prototype of settimeofday() 2023-03-21 11:16:30 -03:00
lib_strftime.c libs/libc/strftime: add modifier character support to strftime 2023-07-24 10:34:23 -07:00
lib_strptime.c clock: Move the content of include/nuttx/time.h to include/nuttx/clock.h 2023-06-26 19:14:08 +03:00
lib_time.c
lib_timegm.c clock: Move the content of include/nuttx/time.h to include/nuttx/clock.h 2023-06-26 19:14:08 +03:00
lib_timespec_get.c
Make.defs