Compare commits
2 Commits
2520ec2e7d
...
573a59045b
Author | SHA1 | Date |
---|---|---|
|
573a59045b | |
|
168c2cc8c3 |
|
@ -1616,7 +1616,8 @@ 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()
|
||||||
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[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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue