From 94e369cd25d8dc252889c729a90322a1791e1e56 Mon Sep 17 00:00:00 2001 From: chenxi Date: Wed, 12 Apr 2023 17:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/time.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/app/common/time.lua b/lua/app/common/time.lua index 5a023650..602f73be 100644 --- a/lua/app/common/time.lua +++ b/lua/app/common/time.lua @@ -133,7 +133,7 @@ function Time:getClientTimeZone() local utcdate = os.date("!*t", now) local localdate = os.date("*t", now) localdate.isdst = false - return os.difftime(os.time(localdate), os.time(utcdate)) + return os.difftime(os.time(localdate), os.time(utcdate)) / SECONDS_PRE_HOUR end function Time:getTimeZoneOffset()