I have installed a new W2003 SP1 with IIS. Everything is at it default in
IIS. We then created a couple of Virtual directory under the "Default Wet
Site". Logging is enabled on "Default Wet Site" with its default settings.
I have check the checkbox which says "Use local time for file naming and
rollover" under logging properties. However all the time stamps for all the
event in the log are +7 hours off. My local time is PST and I'd like to
have a time stamp based on the local time. Any idea?

Re: How to use local time in logs? by Tom

Tom
Fri May 27 13:07:30 CDT 2005

"Zoltan" <Zoltan@pleasedonotemailme.uk> wrote in message
news:%23Gs34RuYFHA.252@TK2MSFTNGP12.phx.gbl...
>I have installed a new W2003 SP1 with IIS. Everything is at it default in
>IIS. We then created a couple of Virtual directory under the "Default Wet
>Site". Logging is enabled on "Default Wet Site" with its default settings.
>I have check the checkbox which says "Use local time for file naming and
>rollover" under logging properties. However all the time stamps for all
>the event in the log are +7 hours off. My local time is PST and I'd like
>to have a time stamp based on the local time. Any idea?

That's because you're using the W3C format and GMT is used as a standard.
There's no need to change it as most log processing software accounts for
that.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserver2003/community/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS



Re: How to use local time in logs? by Kristofer

Kristofer
Sat May 28 05:40:53 CDT 2005

Hello,

In addition to Tom's reply, you might also want to have a look at this KB
Article:

IIS Log File Entries Have the Incorrect Date and Time Stamp
http://support.microsoft.com/?kbid=271196

The article explains two resolutions to your problem. But as Tom says,
your log analyzer can probably fix this as well.

Bye.

--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com


Zoltan wrote:

> I have installed a new W2003 SP1 with IIS. Everything is at it default
in
> IIS. We then created a couple of Virtual directory under the "Default
Wet
> Site". Logging is enabled on "Default Wet Site" with its default
settings.
> I have check the checkbox which says "Use local time for file naming and
> rollover" under logging properties. However all the time stamps for all
the
> event in the log are +7 hours off. My local time is PST and I'd like to
> have a time stamp based on the local time. Any idea?