Browse Source

修改USE_TZ配置2

locky 3 years ago
parent
commit
683d6104a2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Ansjer/cn_config/test_settings.py

+ 3 - 1
Ansjer/cn_config/test_settings.py

@@ -138,7 +138,9 @@ TIME_ZONE = 'Asia/Shanghai'
 # TIME_ZONE = 'UTC'
 USE_I18N = True
 USE_L10N = True
-USE_TZ = True
+USE_TZ = False
+CELERY_ENABLE_UTC = False
+DJANGO_CELERY_BEAT_TZ_AWARE = False
 
 # 跨域增加忽略
 CORS_ALLOW_CREDENTIALS = True