소스 검색

修改USE_TZ配置

locky 3 년 전
부모
커밋
5f9ec779f9
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      Ansjer/cn_config/formal_settings.py
  2. 1 1
      Ansjer/cn_config/test_settings.py
  3. 1 1
      Ansjer/local_config/local_settings.py

+ 1 - 1
Ansjer/cn_config/formal_settings.py

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

+ 1 - 1
Ansjer/cn_config/test_settings.py

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

+ 1 - 1
Ansjer/local_config/local_settings.py

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