mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-02-01 22:47:40 +00:00
fix(config): log fatal when timezone parse fails (#1077)
This commit is contained in:
committed by
GitHub
parent
9efdde8f1a
commit
20bd961c20
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user