diff --git a/worldsrv/clock.go b/worldsrv/clock.go index 7bd48d7..63b3ea6 100644 --- a/worldsrv/clock.go +++ b/worldsrv/clock.go @@ -3,6 +3,7 @@ package main import ( "time" + "mongo.games.com/game/common" "mongo.games.com/goserver/core/module" ) @@ -114,9 +115,9 @@ func (this *ClockMgr) Update() { this.LastDay = day this.fireDayEvent() - _, week := tNow.ISOWeek() - if week != this.LastWeek { - this.LastWeek = week + week := common.GetWeekStartTs(tNow.Unix()) + if week != int64(this.LastWeek) { + this.LastWeek = int(week) this.fireWeekEvent() }