Update settings.py

This commit is contained in:
smilerz 2023-11-29 10:56:33 -06:00 committed by GitHub
parent f69813f729
commit 8b9a09b268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -452,7 +452,7 @@ LANGUAGE_CODE = 'en'
if os.getenv('TIMEZONE') is not None: if os.getenv('TIMEZONE') is not None:
print('DEPRECATION WARNING: Environment var "TIMEZONE" is deprecated. Please use "TZ" instead.') print('DEPRECATION WARNING: Environment var "TIMEZONE" is deprecated. Please use "TZ" instead.')
TIME_ZONE = bool(int(os.getenv('REVERSE_PROXY_AUTH', False))) TIME_ZONE = bool(int(os.getenv('TIMEZONE')))
else: else:
TIME_ZONE = os.getenv('TZ') if os.getenv('TZ') else 'Europe/Berlin' TIME_ZONE = os.getenv('TZ') if os.getenv('TZ') else 'Europe/Berlin'