Django time zone problem

Time:2020-5-29

In the Ubuntu environment:

If you are settings.py The time zone has been set in the file. Please open the terminal to input the commanddate -RCheck if it is correct. If not, pleasetimedatectl set-timezone Asia/ShanghaiChange the time zone of Linux system, and then change the time as welldate -s ‘2020-03-27 11:50:00’(the time here can be changed to the time you want to modify.).