• I have created a front page that displays only the current month’s post. However, when I changed the time zone, new posts that I write after changing the time are not showing up. I changed the time to UTC-8 and manually changed the GMT offset (gmt_offset) in the database to -8 value. Is there a way to fix this?

Viewing 1 replies (of 1 total)
  • Thread Starter achanne

    (@achanne)

    I have found the cause but not a solution. In order to display the date, the date of the posts from get_the_date() are checked against date() and are displayed only if the month and year match. Today is the last day of the month, and the problem is that when I changed the timezone and adjusted GMT offset in the mySQL database in WP_options, posts have the correct time stamp (today’s date, which is Feb 29th) but date() is March 1st. How do I change the timezone in date() (time stamps are correct though)?

Viewing 1 replies (of 1 total)

The topic ‘Messed Up Post Display after Changing Time Zone’ is closed to new replies.