Skip to content

Commit

Permalink
Fixes kiwitcms#982: use ENV variables to control timezone settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonyihk authored and SvetlomirBalevski committed Jul 5, 2019
1 parent 2768c83 commit fcf036b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tcms/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,12 @@
]

# If you set this to False, Django will not use timezone-aware datetimes.
USE_TZ = False
USE_TZ = os.environ.get('KIWI_USE_TZ', 'False').lower() == 'true'


# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
TIME_ZONE = 'Etc/UTC'
TIME_ZONE = os.environ.get('KIWI_TIME_ZONE', 'Etc/UTC')

# Absolute filesystem path to the directory that will hold user-uploaded files.
MEDIA_ROOT = '/Kiwi/uploads'
Expand Down

0 comments on commit fcf036b

Please sign in to comment.