feat: check configured default timezone on startup (#903)

This commit is contained in:
kolaente 2025-06-10 13:03:58 +02:00 committed by GitHub
parent cf5aff0ccd
commit f070268c30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -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()