Support » Fixing WordPress » Incorrect Time in forums

  • The time is not displaying correctly in my web site forums. It’s off by about half an hour or so. I can’t see anywhere in which to correct this, even though I use the correct time zone. How is the time corrected?

Viewing 3 replies - 1 through 3 (of 3 total)
  • whooami



    what does this have to do with wordpress? and whats wrong with the answer you got 5 months ago? that was the right answer.

    I had a similar problem.
    Time on my blog was 4 hours ahead of our timezone.
    Most of the forums I read indicated the problem was with my host and the php.ini file. I contacted my host (bluehost) and they gave me directions on changing the timezone in the .ini file. (cpanel–file manager–(public_html) folder–change the line date.timezone = “America/New_York”;
    Only nothing changed.

    My host said they tested my php.ini file and it was correct, so that something was wrong in my WP installation.

    I also tried the WP admin general settings by changing the UTC to UTC-5 (my timezone) as well as changing the city several times. Nothing changed the UTC time no matter what settings I chose.

    So I searched under forums on UTC and found someone who said they solved their time problem by adding this code to their index.php file.
    <?php date_default_timezone_set('America/New_York'); ?>

    I tried adding it to the index.php, but it didn’t work. However, I then tried adding it to my header.php, and that did work.


    Refer this article:


    Shane G.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Incorrect Time in forums’ is closed to new replies.