瀏覽代碼

修改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