Reset at 1205am instead
This commit is contained in:
@@ -39,7 +39,7 @@ func (dl *Downloader) StartResetBandwidthCountersJob() {
|
||||
if err != nil {
|
||||
cetTZ = time.FixedZone("CET", 1*60*60)
|
||||
}
|
||||
nextMidnightInCET := time.Date(tomorrow.Year(), tomorrow.Month(), tomorrow.Day(), 0, 0, 0, 0, cetTZ)
|
||||
nextMidnightInCET := time.Date(tomorrow.Year(), tomorrow.Month(), tomorrow.Day(), 0, 5, 0, 0, cetTZ)
|
||||
duration := nextMidnightInCET.Sub(now)
|
||||
timer := time.NewTimer(duration)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user