Commit f8a180d34682d741fc3a0851e68f37b27bc9feb4
Merge branch 'tr/bugfix' into tr/publish/preview
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/utils/CommonFunc.lua
@@ -100,7 +100,7 @@ end | @@ -100,7 +100,7 @@ end | ||
100 | -- 判断是不是同一个月 | 100 | -- 判断是不是同一个月 |
101 | function isCrossMonth(target, now) | 101 | function isCrossMonth(target, now) |
102 | now = now or skynet.timex() | 102 | now = now or skynet.timex() |
103 | - local tarTm = os.date("*t", target) | 103 | + local tarTm = os.date("*t", target - RESET_TIME * 3600) |
104 | local nowTm = os.date("*t", now - RESET_TIME * 3600) | 104 | local nowTm = os.date("*t", now - RESET_TIME * 3600) |
105 | if tarTm.year == nowTm.year and tarTm.month == nowTm.month then | 105 | if tarTm.year == nowTm.year and tarTm.month == nowTm.month then |
106 | return false | 106 | return false |