about summary refs log tree commit diff stats
path: root/searchix.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-20 18:25:25 +0200
committerAlan Pearce2024-05-20 18:25:25 +0200
commit202317df1dba891654bf749c3720fbd602df04ff (patch)
treec536ace4120e62602a142959a85e92d61317a1c2 /searchix.go
parent0f5508013d776f8806a87957f80e74c7f74c72eb (diff)
downloadsearchix-202317df1dba891654bf749c3720fbd602df04ff.tar.lz
searchix-202317df1dba891654bf749c3720fbd602df04ff.tar.zst
searchix-202317df1dba891654bf749c3720fbd602df04ff.zip
fix: nix cannot read date/time TOML values from default config
Diffstat (limited to 'searchix.go')
-rw-r--r--searchix.go2
1 files changed, 1 insertions, 1 deletions
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))