Skip to content

Commit

Permalink
move TIME_ZONE set by env var from local_settings to settings, resolves
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed Feb 1, 2024
1 parent e7788eb commit c6acd53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions tubesync/tubesync/local_settings.py.container
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ DEBUG = True if os.getenv('TUBESYNC_DEBUG', False) else False
FORCE_SCRIPT_NAME = os.getenv('DJANGO_FORCE_SCRIPT_NAME', DJANGO_URL_PREFIX)


TIME_ZONE = os.getenv('TZ', 'UTC')


database_dict = {}
database_connection_env = os.getenv('DATABASE_CONNECTION', '')
if database_connection_env:
Expand Down
3 changes: 2 additions & 1 deletion tubesync/tubesync/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from pathlib import Path


Expand Down Expand Up @@ -96,7 +97,7 @@


LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
TIME_ZONE = os.getenv('TZ', 'UTC')
USE_I18N = True
USE_L10N = True
USE_TZ = True
Expand Down

0 comments on commit c6acd53

Please sign in to comment.