WordPress.org

Ready to get started?Download WordPress

Forums

WordPress displays incorrect time (3 posts)

  1. levani01
    Member
    Posted 4 years ago #

    When I echo <?php echo date("H:i:s"); ?> outside of wordpress it displats 16:00:00 (and this is correct time) but when I do the same in my wordpress theme file it displays 12:00:00, so the difference is exactly 4 hours. Why does this happen? I tried changing the timestamp setting from the admin panel but it didn't help!

    Can anyone please help?

  2. kurosquare
    Member
    Posted 4 years ago #

    Does it happens ONLY in theme file or also in the admin panel?

  3. levani01
    Member
    Posted 4 years ago #

    It happens only in theme file, in admin panel everything is correct.

Topic Closed

This topic has been closed to new replies.

About this Topic