has been using Nginx HTTP service, the code to access the file address, did not seriously focus on access to the HTTP directory timestamp.
A problem was found when browsing the file today. The file timestamp displayed on the web is 8 hours compared to the server time.
The concrete expression looks:
Web Catalog Time
Server time
Obviously standard time GMT, did not add China East eight district.
The correct approach is to add the following statement in the Nginx configuration file about this directory field:
Autoindex_localtime on; #GMT时间 Change to local time
The effect is as follows:
UTC is the time standard we now use, GMT is the old time measurement standard.
UTC calculates time according to atomic clocks, and GMT calculates time according to the rotation and revolution of the Earth.
That is, the sun passes every day at the Royal Green Wedge Observatory in London, England, 12 o'clock noon.
Local time uses the gmt+ local timezone.
HTTP directory display time differs from server by 8 hours