Compare commits
No commits in common. "573a59045b211eb71168a44b7f270f229094b873" and "2520ec2e7de905ee9d77207ae449cb9beab98f9c" have entirely different histories.
573a59045b
...
2520ec2e7d
|
@ -1616,8 +1616,7 @@ func (this *Tournament) FixMatchTimeStamp(d *webapiproto.GameMatchDate) {
|
|||
for _, v := range d.MatchTimeWeek {
|
||||
if v == int32(week) {
|
||||
stSub := st.Unix() - nowtool.New(st).BeginningOfDay().Unix()
|
||||
etSub := et.Unix() - nowtool.New(et).BeginningOfDay().Unix()
|
||||
sub := etSub - stSub
|
||||
sub := d.MatchTimeStamp[1] - d.MatchTimeStamp[0]
|
||||
d.MatchTimeStamp[0] = nowtool.New(bTs).BeginningOfDay().Add(time.Duration(stSub) * time.Second).Unix()
|
||||
d.MatchTimeStamp[1] = d.MatchTimeStamp[0] + sub
|
||||
|
||||
|
|
Loading…
Reference in New Issue