From a27e74bf53da9b4a5d95e671ce4900598b023e7b Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Sat, 23 Jan 2021 17:46:12 +0800 Subject: [PATCH] 月重置 --- src/utils/CommonFunc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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