Connecting Tech Pros Worldwide Forums | Help | Site Map

Time GMT down

nonce999
Guest
 
Posts: n/a
#1: Apr 2 '08
Periodically time server returned from Apache (WinXP SO) to PHP is
not Correct.
So to restore must stop and restart.
In logo, when the time is correct (14:02:12) appear:
127.0.0.1 - - [31/Mar/2008: 12:02:12 +0200]
When is not correct (12:02:12) appear:
127.0.0.1 - - [31/Mar/2008: 12:02:12 +0000]
It is as if the lost based on local time and not maintain the GMT.
Do it is possible to correct this problem?

--
http://interno.netsons.org

Hans-Werner Hilse
Guest
 
Posts: n/a
#2: Apr 2 '08

re: Time GMT down


Hi,

nonce999 wrote:
Quote:
Periodically time server returned from Apache (WinXP SO) to PHP is
not Correct.
So to restore must stop and restart.
In logo, when the time is correct (14:02:12) appear:
127.0.0.1 - - [31/Mar/2008: 12:02:12 +0200]
When is not correct (12:02:12) appear:
127.0.0.1 - - [31/Mar/2008: 12:02:12 +0000]
This looks like the httpd's log file output. Where does PHP come into
play? If your problem is really about the httpd, you should be better
asking this in a web server NG or the dedicated forum for your
distribution of Apache...

Most probably it's a wrong program environment setup. And what time
offset would be really correct for you? At least the mail you wrote
states »GMT«, which wouldn't match your statement on the timestamp w/
offset +0200 as being »correct«.

-hwh
nonce999
Guest
 
Posts: n/a
#3: Apr 2 '08

re: Time GMT down


I believe that the problem may depend on some instruction in some php
script.
But I do not know what to look for.
I tried date_default_timezone_set, putenv, setlocale but have not
found anything suspicious.

--
http://interno.netsons.org
Hans-Werner Hilse
Guest
 
Posts: n/a
#4: Apr 2 '08

re: Time GMT down


Hi,

On 02 Apr 2008 15:22:17 GMT nonce999 <nonce999@haii.comwrote:
Quote:
I believe that the problem may depend on some instruction in some php
script.
But I do not know what to look for.
I tried date_default_timezone_set, putenv, setlocale but have not
found anything suspicious.
I don't run PHP on Windows, so maybe someone else can comment on
specific issues in that environment. I can certainly tell that on Linux
the timezone setting does *not* cascade up to the Apache process
handling the request. But then, I don't know about environment and
locale set up on Windows machines. Maybe someone else can help you...


-hwh
Closed Thread


Similar PHP bytes