更改django的时区 TIME_ZONE='Asia/Shanghai' datetime_obj.replace(tzinfo=(pytz.timezone("Asia/Shanghai"))).strftime("%Y-%m-%d %H:%M:%S")