feat: check configured default timezone on startup (#903)
This commit is contained in:
parent
cf5aff0ccd
commit
f070268c30
|
|
@ -44,6 +44,11 @@ func LightInit() {
|
|||
// Init the config
|
||||
config.InitConfig()
|
||||
|
||||
// Check if the configured time zone is valid
|
||||
if _, err := time.LoadLocation(config.ServiceTimeZone.GetString()); err != nil {
|
||||
log.Criticalf("Error parsing default time zone: %s", err)
|
||||
}
|
||||
|
||||
// Init redis
|
||||
red.InitRedis()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue