django项目中实际时间与数据库内时间不一致的问题

版权声明:https://blog.csdn.net/study_in https://blog.csdn.net/study_in/article/details/88636898
  • 在数据在库中执行 set time_zone="+0:00";

  • 具体数值为多少看你所在的位置

  • 或者在django中的setting.py中设置

    USE_TZ = False
    

猜你喜欢

转载自blog.csdn.net/study_in/article/details/88636898