From 202317df1dba891654bf749c3720fbd602df04ff Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 20 May 2024 18:25:25 +0200 Subject: fix: nix cannot read date/time TOML values from default config --- searchix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searchix.go') diff --git a/searchix.go b/searchix.go index 605db55..26c8148 100644 --- a/searchix.go +++ b/searchix.go @@ -184,7 +184,7 @@ func main() { Timezone: time.Local.String(), } - nextRun := nextOccurrenceOfLocalTime(cfg.Importer.UpdateAt) + nextRun := nextOccurrenceOfLocalTime(cfg.Importer.UpdateAt.LocalTime) for { slog.Debug("scheduling next run", "next-run", nextRun) <-time.After(time.Until(nextRun)) -- cgit 1.4.1