From 810da67b6ffa7c482e68bfabeb00b62db526551f Mon Sep 17 00:00:00 2001 From: TangZhenye <361869840@qq.com> Date: Tue, 29 Aug 2023 09:55:38 +0800 Subject: [PATCH] =?UTF-8?q?[ctime]=20=E9=81=BF=E5=85=8D=E6=97=B6=E5=8C=BA?= =?UTF-8?q?=E4=B8=BA=E8=B4=9F=E6=95=B0=E6=97=B6=E5=BC=95=E5=85=A5=E7=9A=84?= =?UTF-8?q?=E9=9A=90=E5=BC=8F=E8=BD=AC=E6=8D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/common/ctime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/libc/compilers/common/ctime.c b/components/libc/compilers/common/ctime.c index 0e8843cf54..a87db1dcea 100644 --- a/components/libc/compilers/common/ctime.c +++ b/components/libc/compilers/common/ctime.c @@ -475,9 +475,9 @@ int gettimeofday(struct timeval *tv, struct timezone *tz) { tz->tz_dsttime = DST_NONE; #if defined(RT_LIBC_USING_LIGHT_TZ_DST) - tz->tz_minuteswest = -(rt_tz_get() / 60U); + tz->tz_minuteswest = -(rt_tz_get() / 60); #else - tz->tz_minuteswest = 0U; + tz->tz_minuteswest = 0; #endif /* RT_LIBC_USING_LIGHT_TZ_DST */ }