IIS logging time is not correct

  
When viewing the IIS website access log, it is found that the time recorded in the IIS log is incorrect. It is obviously displayed at 4 o'clock in the afternoon at 8 o'clock in the afternoon. After the query, the reason is found because IIS records the time by default. Greenwich Mean Time, which is 8 hours away from the time we used in Beijing, the following is the solution: Solution: It is very simple, it is to change the time of IIS logging to the time on the computer that our website is running. . With a small setting that allows IIS log time to use the time zone set by the server, the Beijing time we use is +8 zone, which is usually set when the operating system is installed. The following settings for IIS (Windows2003+IIS6 as an example): Open "Internet Information Services (IIS) Manager", click "Internet Information Services", "local computer", "website" & rdquo; On the website you need (if you want to set up all the websites, right click on the “site”) and right click on "Properties" to open the website properties. Find the "Event Log Format" under the "Website" tab, click the "Properties" button to open the IIS log properties, and under the IIS Log Properties <;General” tab, find the file naming And create a local time & rdquo;, tick in front of it. Click twice & ok; OK & rdquo; Exit & ldquo; Internet Information Services (IIS) Manager & rdquo;. At this point, the time of the new logging in IIS is the local time used by the server.

Copyright © Windows knowledge All Rights Reserved