aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAKP <tom@tdpain.net>2022-04-06 11:54:06 +0100
committerAKP <tom@tdpain.net>2022-04-06 11:54:06 +0100
commit0584b75f8ad9b4a4f4a289c7f444e21c43f815e7 (patch)
treebace2ad4fd34154eb31a067fa468c0cbf7add995
parent6436813cdc9457056e1ad4d2b7d7ff9d7703e9ac (diff)
Ensure hourly job runs on UTC time
Signed-off-by: AKP <tom@tdpain.net>
-rw-r--r--walrss/internal/rss/watcher.go1
1 files changed, 1 insertions, 0 deletions
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()
}