时区
This commit is contained in:
parent
39fed0bb6d
commit
94e369cd25
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user