Django设置TIME_ZONE和LANGUAGE_CODE为中国区域时间:2024-03-11 20:15:46 Django默认的timezone是 TIME_ZONE = \'America/Chicago\' LANGUAGE_CODE = \'en-us\' 设置为中国区域: TIME_ZONE = \'Asia/Shanghai\' LANGUAGE_CODE = \'zh-cn\' 另外你可以根据情况设置 \Lib\site-packages\django\conf\global_settings.py 里面的时区