From 66e2a9424b6d4a46be1bb697fa5acbec46a287a8 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Wed, 10 Feb 2021 21:01:16 +0800 Subject: [PATCH] update --- components/libc/compilers/common/time.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c index 2cea9b75ce..dc33e0b9e5 100644 --- a/components/libc/compilers/common/time.c +++ b/components/libc/compilers/common/time.c @@ -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); }