• Hi,

    Our wordpress site runs on a server in the USA.

    – The timezone on the server is set to Asia/Jerusalem
    – The timezone in php.ini on the server is set to Asia/Jerusalem
    – The timezone option in the dashboard setting is Asia/Jerusalem

    Yet despite the above, error message, revision times and sometimes even articles themselves show the time in either UTC or even in location of the server (Chicago, IL, USA)! Worse still, it sometimes – without any rules I can see – displays the completely wrong times.

    Right now, for example, I saved an update to a post. About 10 minutes, having left the post edit page open, it auto-saved. Look at the two lines in the list of revisions:

    9 April, 2013 @ 17:56 [Autosave] by Biranit Goren
    9 April, 2013 @ 14:19 by Biranit Goren

    Again, the two are about 10 minutes apart so the first save should have been 17:46 or so…

    Any suggestions?

    Thanks,

    Bira

Viewing 7 replies - 1 through 7 (of 7 total)
  • Have you restart your server? Changes will not take effect until you restart apache.

    Thread Starter Biranit

    (@biranit)

    Hi Justin,

    Thanks for responding – but Apache has nothing to do with this, as these are not new settings. Apache has obviously been restarted a few times since these settings were put in place a year ago – back when we set up the server and moved the site to it.

    This is also not a new problem – I’m just out of ideas how to debug it.

    Thanks,

    Bira

    Apache has everything to do with it as it is the time keeper. Other things then modify off of Apache’s settings. The php.ini file is a connector to Apache.

    Do you have SSH access to the server?

    Thread Starter Biranit

    (@biranit)

    Yes, I do. Here’s the php.ini part relating to date (response of php -i):

    date
    
    date/time support => enabled
    "Olson" Timezone Database Version => 0.system
    Timezone Database => internal
    Default timezone => Asia/Jerusalem
    
    Directive => Local Value => Master Value
    date.default_latitude => 31.7667 => 31.7667
    date.default_longitude => 35.2333 => 35.2333
    date.sunrise_zenith => 90.583333 => 90.583333
    date.sunset_zenith => 90.583333 => 90.583333
    date.timezone => Asia/Jerusalem => Asia/Jerusalem

    Here’s the server time:

    [apache@410643-web1 ~]$ date
    Tue Apr  9 18:25:18 IDT 2013

    Where else would I look? I don’t know that Apache has a date directive?

    Many thanks,

    Bira

    Thread Starter Biranit

    (@biranit)

    By the way, I should add that the first line in my theme’s functions.php is:

    date_default_timezone_set('Asia/Jerusalem');

    (That’s always been there). It should be redundant, given the php.ini settings, but I added it just in case. And yet I still have TZ discrepancies…

    date_default_timezone_set('Asia/Jerusalem');
    This actually overrides the php.ini file.

    You do not have any plugins like “Event Planner” or along those lines?

    Thread Starter Biranit

    (@biranit)

    Yes, I know it overrides – that’s why I said it is redundant, given that the value in php.ini is the same (so there’s no need to override) ??

    No, no “Event Planner”. No other plugin that would have an effect on revisions either.

    Thanks ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Wrong timezone despite correct options’ is closed to new replies.