Django: time zone issue

后端 未结 4 1647
一整个雨季
一整个雨季 2021-02-01 09:44

NOTE: I deleted the question as it existed previously and providing only the relevant info here.

Our database server (RH) has TIME_ZONE = \"Europe/London\" specified. An

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-01 10:20

    When you say auto_now_add=True, the value will be added by your database server and not your django server. So you need to set time zone on your database server.

提交回复
热议问题