From 5ae4f7ff99ebd68b16b1ba48713978c3a1056289 Mon Sep 17 00:00:00 2001 From: Kenneth Date: Sat, 10 May 2025 23:27:10 +0100 Subject: [PATCH] test midnight time --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e7fd4e6..8c48164 100644 --- a/main.go +++ b/main.go @@ -205,7 +205,7 @@ func main() { } _, err = s.NewJob( - gocron.DurationJob(time.Minute), + gocron.DailyJob(1, gocron.NewAtTimes(gocron.NewAtTime(0, 0, 0))), gocron.NewTask(updateSummaries, &state, locKey, &loc), gocron.WithStartAt(gocron.WithStartImmediately()), )