From c92530b7940bfd9e0940dd07e4a33b8dc4b575ea Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 4 Dec 2024 17:28:48 +0100 Subject: fix: use UTC time for fetch/import timer --- internal/config/default.go | 2 +- internal/config/structs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') 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 { -- cgit 1.4.1