summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/time.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-10 21:01:16 +0800
committerMeco Man <[email protected]>2021-02-10 21:01:16 +0800
commit66e2a9424b6d4a46be1bb697fa5acbec46a287a8 (patch)
treea3e3f397ccb0272b702a20bff38eeb5d0766e7d3 /components/libc/compilers/common/time.c
parent39ff4b5a97accf4a0c2134b8b7b395482fc785fb (diff)
update
Diffstat (limited to 'components/libc/compilers/common/time.c')
-rw-r--r--components/libc/compilers/common/time.c6
1 files 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);
}