The default TIME_ZONE should be UTC

In production, we use UTC as the time zone.  DRF 3.7.7 now puts all
times in the currently set timezone where it used to use UTC.  By
setting TIME_ZONE to UTC, we keep the same results we used to get.

In a few places, we had to change the expected test results to be UTC.
This commit is contained in:
Ned Batchelder
2019-05-13 13:20:56 -04:00
parent c60da18de5
commit 9257f68fd8
5 changed files with 10 additions and 10 deletions

View File

@@ -680,7 +680,7 @@ STATICFILES_DIRS = [
# Locale/Internationalization
CELERY_TIMEZONE = 'UTC'
TIME_ZONE = 'America/New_York' # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
TIME_ZONE = 'UTC'
LANGUAGE_CODE = 'en' # http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGES_BIDI = lms.envs.common.LANGUAGES_BIDI