Date displays in wrong timezone

by jbaugh
2 replies
I am relatively new to WordPress. Our church website was designed in WP by someone who has left the scene and is not available to assist with my problem. I have absolutely no prior experience with PHP.

The site was designed to show the current day of the week, month, day of month and year in the left upper portion of each web page. The problem is that the date changes to the next day 7 hours prematurely. I've found the php code that deals with the date display in the dashboard in WP-admin. I actually added the parameters "T" and "h:i A" to the php code that was already in Edit Themes/Header to see if I could better understand how this works. I found these parameters while searching for help. Now my web pages display: day of week, month, day of month, year, "UTC" and time of day which is 7 hours ahead of my local time.

I'm guessing that this means that my web site "thinks" that it is in the UTC timezone instead of the UTC-7 timezone. But I have no idea how to remedy this problem.

To view my web site: LCCUT.org

Any help would be greatly appreciated. Please remember that I'm not very coding sophisticated with any suggestions you might have.

John
#date #displays #timezone #wrong
  • Profile picture of the author TheFreebieGuy
    In you Wordpress Dashboard, go to >Settings and then >General.

    You should have the option to change your timezone there.

    Hope that helps.

    All the best!
    Signature

    ---------
    Leslie, The Freebie Guy
    My Blog - The Freebie Guy - (FREE Advice and Tips to Grow your Online Business)
    Build Your Online Business in 7 Days - 7 Day Bootcamp

    {{ DiscussionBoard.errors[2951999].message }}
  • Profile picture of the author SteveJohnson
    Leslie's advice is the first thing to try, although I suspect it won't solve your problem.

    If it doesn't, you have two options: set the PHP timezone in the theme, or rewrite the date display to use WordPress' date function.

    Setting the timezone would probably be the easiest. See this page: PHP: date_default_timezone_set - Manual for more information.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[2952123].message }}

Trending Topics