Time GMT down

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nonce999

    Time GMT down

    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?

    --

  • Hans-Werner Hilse

    #2
    Re: Time GMT down

    Hi,

    nonce999 wrote:
    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

    Comment

    • nonce999

      #3
      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_ti mezone_set, putenv, setlocale but have not
      found anything suspicious.

      --

      Comment

      • Hans-Werner Hilse

        #4
        Re: Time GMT down

        Hi,

        On 02 Apr 2008 15:22:17 GMT nonce999 <nonce999@haii. comwrote:
        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_ti mezone_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

        Comment

        Working...