Support Forum

"Last Post" times appear to not compensate for time zone

JS J S
J S
Member

(Note that I’ve just upgraded from 4.x, so I’ll be posting several questions and bug reports.  Overall the migration went surprisingly well and the boards are still functional, so kudos for that!)

I have noticed that the time calculations for “Last Post” appear to not compensate for the time zone.

For instance, if I post to my forums, the time on the post itself is correct — but when I look at the topic list, it shows the last post as being “7 hours ago.”  And indeed, my timezone is UTC-7.

This isn’t a showstopper, and it might even be a known issue, but I figured I’d mention it.

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

There is an FAQ on this on our Codex (http://codex.simple-press.com/codex/faq/troubleshooting/why-do-my-new-posts-show-as-posted-minus-seconds-ago/) but you do need to stop using UTC values which are not properly supported by php and are only still supported by WP for backward compatibility.

JS J S
J S
Member

That’s a strange one…I had to troll through a very long list of cities and try to find one that was in my time zone. This took a couple minutes as several of the obvious choices were not present (which was why I set it to UTC in the first place), but the problem is now sorted. Thank you!

YS Yellow Swordfish
Yellow Swordfish
Member

It’s a standard list supplied by php 5 now that it supports proper timezoning. I actually think there are probably too many cities in the list as I rather think most people know what timezone the are in from major centres. But – that’s the list we get given.