Hi Tom:

Thank you for your quick answer. Actually i set my machine timezone point to
-> /usr/share/zoneinfo/US/Centeral.
This is why my machine system time is correct without any problem. If my
script runs from command line, it is also correct. The only problem comes from
web server which logs wrong time and shows wrong time on broswer. Is anyway to
make web server timezone same as system timezone. How could web server has
different timezone? Is anywasy to reset web server timezone in httpd.conf or
somewhere else. Thank you very much.

Steven...

Tom Brown wrote:

> This might be a reflection of how you're starting you copy of Apache...
> make sure that all the normal stuff that's done in a shell is done before
> apache gets started... this might be as simple as setting a TZ environment
> variable... on a linux box it should be a moot point, as /etc/localtime
> should point to the right timezone file...
>
> [root@americium ~]# ll /etc/localtime
> lrwxrwxrwx   1 root     root           36 Aug 17  1998 /etc/localtime ->
> ../usr/share/zoneinfo/Canada/Pacific
>
> For other operating systems... I can only guess.
>
> On Sat, 15 Jul 2000, Steven Zhu wrote:
>
> > Hi All:
> >
> > I compiled and installed new web server (most recent apache and mod
> > perl). Every is fine except that all scripts show wrong time. But it is
> > not only script problem. If i checked with the access.log file, the log
> > time is also wrong. For instance, the current local time is 11:38
> > and my system time is also 11:38. But the script shows the result: 16:38
> > and access.log file shows 16:38. it is always 5 hrs more. It is really
> > timezone problem. I compiled apache many times, never met the situation.
> > Because it was compiled by local machne, the default timezone should be
> > same as my local machine timezone but it is not. How can i reset the
> > timezone from httpd.conf or Do i need to recompile the apache or any
> > another way i can do? Please help me. Thank you very much...
> >
> > Steven.
> >
>
> ----------------------------------------------------------------------
> [EMAIL PROTECTED]   | Put all your eggs in one basket and
> http://BareMetal.com/  |      WATCH THAT BASKET!
> web hosting since '95  | - Mark Twain

Reply via email to