4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-20 22:17:20 +08:00
This commit is contained in:
Meco Man 2021-02-10 21:01:16 +08:00
parent 39ff4b5a97
commit 66e2a9424b

View File

@ -101,10 +101,10 @@ struct tm* gmtime(const time_t* t)
struct tm* localtime_r(const time_t* t, struct tm* r)
{
time_t local_tz;
int utc;
int utc_plus;
utc = 3600 * 0; /* GTM: UTC+0 */
local_tz = *t + utc;
utc_plus = 3600 * 0; /* GTM: UTC+0 */
local_tz = *t + utc_plus;
return gmtime_r(&local_tz, r);
}