diff --git a/sapl/settings.py b/sapl/settings.py index ec46dd092..12865c501 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -231,7 +231,10 @@ LANGUAGES = ( ('pt-br', 'Português'), ) -TIME_ZONE = config('TZ', cast=str, default='America/Sao_Paulo') +TIME_ZONE = config('TZ', default='America/Sao_Paulo') +if not TIME_ZONE: + raise ValueError('TIMEZONE env variable undefined in .env settings file! Leaving...') + USE_I18N = True USE_L10N = True USE_TZ = True