diff --git a/Assets/ManagedResources/~Lua/Common/functions.lua b/Assets/ManagedResources/~Lua/Common/functions.lua index 710eea6d7e..4f158e26c6 100644 --- a/Assets/ManagedResources/~Lua/Common/functions.lua +++ b/Assets/ManagedResources/~Lua/Common/functions.lua @@ -1815,7 +1815,7 @@ function CalculateSecondsNowTo_N_OClock(n) --- 标准时间戳从1970年1月1日8点开始,加上八个小时的秒数,使其从0点开始 --- 8*60*60 = 28800 --- 24*60*60 = 86400 - local todayPassSeconds = (curTimeStemp + 28800) % 86400 + local todayPassSeconds = (curTimeStemp + 25200) % 86400 local targetSeconds = n * 3600 --- 60*60 = 3600 if todayPassSeconds <= targetSeconds then return targetSeconds - todayPassSeconds