fix(config): log fatal when timezone parse fails (#1077)

This commit is contained in:
Dominik Pschenitschni 2025-07-03 17:06:54 +02:00 committed by GitHub
parent 9efdde8f1a
commit 20bd961c20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -253,8 +253,7 @@ func GetTimeZone() *time.Location {
if timezone == nil {
loc, err := time.LoadLocation(ServiceTimeZone.GetString())
if err != nil {
fmt.Printf("Error parsing time zone: %s", err)
os.Exit(1)
log.Fatalf("Error parsing time zone: %s", err)
}
timezone = loc
}