在models模块中,使用时间字段时,用自带的获取时间方法,造成8小时误差
time = models.DateTimeField(auto_now=True) # 保存的时间有8小时误差
在setting.py中找到 USE_TZ 把True 改成 False 就ok了