diff --git a/src/utils/CommonFunc.lua b/src/utils/CommonFunc.lua index 4fcfc48..0795095 100644 --- a/src/utils/CommonFunc.lua +++ b/src/utils/CommonFunc.lua @@ -100,7 +100,7 @@ end -- 判断是不是同一个月 function isCrossMonth(target, now) now = now or skynet.timex() - local tarTm = os.date("*t", target) + local tarTm = os.date("*t", target - RESET_TIME * 3600) local nowTm = os.date("*t", now - RESET_TIME * 3600) if tarTm.year == nowTm.year and tarTm.month == nowTm.month then return false -- libgit2 0.21.2