• On the “General Settings” page of my WordPress site, it’s not displaying the correct UTC and local times (click here for screenshot).

    It says my UTC time is “15:52” and my local time is “11:52”. This is wrong. It should say that my local time is “15:52”.

    • I’m running WordPress 4.9.6 and PHP 7.0.30.
    • The default timezone in my “php.ini” file is set correctly–when I call the date() and date_default_timezone_get() functions from a standalone PHP script, they output the correct information.
    • The clock on my Windows web server is correct and is set to the correct timezone.
    • The time displays incorrectly when I call the following WordPress function (it is 4 hours behind what it should be): current_time('Y-m-d H:i').

    This thread says the problem is caused by a bad plugin. I actually had that particular plugin installed, but deactivating (and then deleting) the plugin didn’t fix the issue for me.

    This thread says it’s due to the server’s timezone definitions being corrupted. It provides instructions on how to fix this for Linux, but not Windows. However, I have other WordPress sites hosted on the same server, and they do not have this issue.

    Issue has been cross-posted here: https://wordpress.stackexchange.com/q/306466/84270

    • This topic was modified 6 years, 8 months ago by thelibrarytech. Reason: Added clarification
Viewing 2 replies - 1 through 2 (of 2 total)
  • It says my UTC time is “15:52” and my local time is “11:52”. This is wrong. It should say that my local time is “15:52”.

    Unless I’m not completely understanding your issue:

    In your screenshot you appear to have your time zone set to New York.

    New York time is UTC -4 right now (DST) I believe, is it not?

    So if UTC is 15:52, then shouldn’t EDT (New York) be UTC -4 (or) 11:52?

    Thread Starter thelibrarytech

    (@thelibrarytech)

    Exactly right! The problem is that it was not 11:52 in my timezone when the screenshot was taken. I took the screenshot at 15:52 New York time. So, it should have said that UTC time is 19:52 and local time is 15:52.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Timezone Settings: “UTC” and “local” times are incorrect’ is closed to new replies.