Browse Source

修改USE_TZ配置

locky 3 years ago
parent
commit
5f9ec779f9

+ 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