From 0584b75f8ad9b4a4f4a289c7f444e21c43f815e7 Mon Sep 17 00:00:00 2001 From: AKP Date: Wed, 6 Apr 2022 11:54:06 +0100 Subject: Ensure hourly job runs on UTC time Signed-off-by: AKP --- walrss/internal/rss/watcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/walrss/internal/rss/watcher.go b/walrss/internal/rss/watcher.go index f94eef3..9d530e7 100644 --- a/walrss/internal/rss/watcher.go +++ b/walrss/internal/rss/watcher.go @@ -23,6 +23,7 @@ func StartWatcher(st *state.State) { func runFeedProcessor(st *state.State, currentTime time.Time) { log.Info().Str("location", "feed watcher").Msg("running hourly job") + currentTime = currentTime.UTC() if err := ProcessFeeds(st, db.SendDayFromWeekday(currentTime.Weekday()), currentTime.Hour()); err != nil { log.Error().Err(err).Str("location", "feed watcher").Send() } -- cgit v1.2.3-70-g09d2