About the time zone problem of the time difference of 8 hours in the ftp upload file system

May 20, 2022 09:14:28

A strange problem occurred in the uploaded code yesterday, that is, the view cache has not been updated. At first, I thought it was because the waf cache of the analysis layer was not updated. The reason why the waf was not updated was because the view cache produced by the code layer was not updated.

The reason why the code layer cache is not updated is that the ftp upload time is 8 hours behind the server display. The view cache judges whether it needs to be updated based on the file modification time, so the view cache is not updated.

 

The core key is the ftp tool problem, I have been using FlashFXP

The time zone used by default tries to automatically discover the time offset. I then changed it to use the server time and the Beijing time zone, but it still didn’t work.

Then modify the server user_localtime=YES, and found that vsftp has been set in this way.

It is no problem to find that my colleagues use other ftp tools, so I use filezilla instead

 Just change the server time to -8 hours, or change the server type to unix  

Guess you like

Origin blog.csdn.net/zh7314/article/details/124958652