about summary refs log tree commit diff stats
path: root/internal/config
diff options
context:
space:
mode:
authorAlan Pearce2024-12-04 17:28:48 +0100
committerAlan Pearce2024-12-04 17:28:48 +0100
commitc92530b7940bfd9e0940dd07e4a33b8dc4b575ea (patch)
tree465c3d05b2034e1a0c1daefcad2c645c79bfd90a /internal/config
parentec4946ee959b2d7d28287e9cd4643a0698833f6b (diff)
downloadsearchix-c92530b7940bfd9e0940dd07e4a33b8dc4b575ea.tar.lz
searchix-c92530b7940bfd9e0940dd07e4a33b8dc4b575ea.tar.zst
searchix-c92530b7940bfd9e0940dd07e4a33b8dc4b575ea.zip
fix: use UTC time for fetch/import timer
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/default.go2
-rw-r--r--internal/config/structs.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/config/default.go b/internal/config/default.go
index d6ad6f7..a857799 100644
--- a/internal/config/default.go
+++ b/internal/config/default.go
@@ -49,7 +49,7 @@ var DefaultConfig = Config{
 	Importer: &Importer{
 		LowMemory: false,
 		Timeout:   Duration{30 * time.Minute},
-		UpdateAt:  mustLocalTime("04:00:00"),
+		UpdateAt:  mustLocalTime("03:00:00"),
 		Sources: map[string]*Source{
 			"nixos": {
 				Name:       "NixOS",
diff --git a/internal/config/structs.go b/internal/config/structs.go
index dd79303..b31e0cd 100644
--- a/internal/config/structs.go
+++ b/internal/config/structs.go
@@ -31,7 +31,7 @@ type Importer struct {
 	Sources   map[string]*Source
 	LowMemory bool      `comment:"Use less memory at the expense of import performance"`
 	Timeout   Duration  `comment:"Abort fetch and import process for all jobs if it takes longer than this value."`
-	UpdateAt  LocalTime `comment:"Local time of day to run fetch/import process"`
+	UpdateAt  LocalTime `comment:"Time of day (UTC) to run fetch/import process"`
 }
 
 type Source struct {