Compare commits

..

No commits in common. "573a59045b211eb71168a44b7f270f229094b873" and "2520ec2e7de905ee9d77207ae449cb9beab98f9c" have entirely different histories.

1 changed files with 1 additions and 2 deletions

View File

@ -1616,8 +1616,7 @@ func (this *Tournament) FixMatchTimeStamp(d *webapiproto.GameMatchDate) {
for _, v := range d.MatchTimeWeek { for _, v := range d.MatchTimeWeek {
if v == int32(week) { if v == int32(week) {
stSub := st.Unix() - nowtool.New(st).BeginningOfDay().Unix() stSub := st.Unix() - nowtool.New(st).BeginningOfDay().Unix()
etSub := et.Unix() - nowtool.New(et).BeginningOfDay().Unix() sub := d.MatchTimeStamp[1] - d.MatchTimeStamp[0]
sub := etSub - stSub
d.MatchTimeStamp[0] = nowtool.New(bTs).BeginningOfDay().Add(time.Duration(stSub) * time.Second).Unix() d.MatchTimeStamp[0] = nowtool.New(bTs).BeginningOfDay().Add(time.Duration(stSub) * time.Second).Unix()
d.MatchTimeStamp[1] = d.MatchTimeStamp[0] + sub d.MatchTimeStamp[1] = d.MatchTimeStamp[0] + sub