Update settings.py
This commit is contained in:
parent
8b9a09b268
commit
9b18cab145
@ -452,7 +452,7 @@ LANGUAGE_CODE = 'en'
|
||||
|
||||
if os.getenv('TIMEZONE') is not None:
|
||||
print('DEPRECATION WARNING: Environment var "TIMEZONE" is deprecated. Please use "TZ" instead.')
|
||||
TIME_ZONE = bool(int(os.getenv('TIMEZONE')))
|
||||
TIME_ZONE = os.getenv('TIMEZONE') if os.getenv('TIMEZONE') else 'Europe/Berlin'
|
||||
else:
|
||||
TIME_ZONE = os.getenv('TZ') if os.getenv('TZ') else 'Europe/Berlin'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user