fix(config): log fatal when timezone parse fails (#1077)
This commit is contained in:
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue