diff --git a/worldsrv/tournament.go b/worldsrv/tournament.go index be514e9..31ce55b 100644 --- a/worldsrv/tournament.go +++ b/worldsrv/tournament.go @@ -1616,7 +1616,8 @@ func (this *Tournament) FixMatchTimeStamp(d *webapiproto.GameMatchDate) { for _, v := range d.MatchTimeWeek { if v == int32(week) { stSub := st.Unix() - nowtool.New(st).BeginningOfDay().Unix() - sub := d.MatchTimeStamp[1] - d.MatchTimeStamp[0] + etSub := et.Unix() - nowtool.New(et).BeginningOfDay().Unix() + sub := etSub - stSub d.MatchTimeStamp[0] = nowtool.New(bTs).BeginningOfDay().Add(time.Duration(stSub) * time.Second).Unix() d.MatchTimeStamp[1] = d.MatchTimeStamp[0] + sub