Reset at 1205am instead

This commit is contained in:
Ben Adrian Sarmiento
2024-07-01 03:00:01 +02:00
parent 44ce26ee1c
commit 416bcbd714

View File

@@ -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)