4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-03-02 19:05:28 +08:00

在time.c中增加RT_LIBC_FIXED_TIMEZONE默认值,防止有些工程没有配置RT_LIBC_FIXED_TIMEZONE

This commit is contained in:
Meco Man 2021-05-01 06:03:46 +08:00
parent a7a3ca9f02
commit 0aa3b80fc3

View File

@ -30,6 +30,10 @@
#define DBG_LVL DBG_INFO #define DBG_LVL DBG_INFO
#include <rtdbg.h> #include <rtdbg.h>
#ifndef RT_LIBC_FIXED_TIMEZONE
#define RT_LIBC_FIXED_TIMEZONE 8
#endif
/* seconds per day */ /* seconds per day */
#define SPD 24*60*60 #define SPD 24*60*60