Support Forum

TimeZone Issue – Recent Forum Posts Widget shows "7 hours ago" for a minutes-old post

TY tyleryoungblood
tyleryoungblood
Member

I’ve seen several threads where users have reported time (displayed in seconds) and time zone issues. But I haven’t seen one that exactly fits my issue so I’m starting a new thread. 

I have checked my WP timezone settings (settings>general) and confirmed that my time zone “Local Time” matches my time zone. I’ve also confirmed in my forum profile that the time zone matches. 

When I create a new forum post, the time above my avatar is also correct (shows 8:59pm for a post that happened at 8:59pm). 

However, when I look at my Recent Forum Posts widget it says my 8:59pm post was “7 hours ago”. And it says that other posts that are minutes old (from other people) are also from 7 hours ago. 

Suggestions?

17 Answers

New Answer

MP Mr Papa
Mr Papa
Member

There are no known issues with timezones currently…  Are you running latest 5.0.5 core and latest template tags plugin 1.0.9??  they had fixed any known issues…

TY tyleryoungblood
tyleryoungblood
Member

My mistake, I was running the previous version (5.0.4?). When I updated to 5.0.5 it seems to have fixed the issue. Thanks!

YS Yellow Swordfish
Yellow Swordfish
Member

Please check your settings as explained in this codex article: http://codex.simple-press.com/codex/faq/troubleshooting/why-do-my-new-posts-show-as-posted-minus-seconds-ago/

YS Yellow Swordfish
Yellow Swordfish
Member

I don’t understand the question. Wait for what?

VV Vitaly Vishnevsky
Vitaly Vishnevsky
Member

Sorry did not mention: 

Once Set do NOT change the Server Timezone
If it is ever necessary to change the WordPress server timezone setting be aware that all existing blog and forum posts will still be held with the original date and time – these will not change. So there may be an immediate period where the times appear to be wrong but this will work itself out after a day or so.
YS Yellow Swordfish
Yellow Swordfish
Member

Ah yes. Well changing this setting is only going to effect new posts not old ones so they need to disappear off the radar or be ignored when testing if things are now OK when the right settings are put in place.

BW bwyatt
bwyatt
Member

I got a complaint yesterday about this issue.  It apparently happened after I upgraded to 5.05. You can post something and then look at the “last post” time on the main forum page and it says “7 hours ago.”  

Is their a solution to this I’m missing?  I’m not understanding the previous posts too well.

I’m here: http://martinsvillemedia.com/?page_id=138

YS Yellow Swordfish
Yellow Swordfish
Member

See if this helps:

http://codex.simple-press.com/codex/faq/troubleshooting/why-do-my-new-posts-show-as-posted-minus-seconds-ago/

BW bwyatt
bwyatt
Member

The only thing I gleaned from this is that I have been using UTC settings with no problem and you advise not to.  I’ve changed it now and will wait ” a day or so” to see if it corrects itself.

I point out again that the time zone problem I encountered only occurred AFTER the latest update.  Prior to that it was fine and the problem has been reported now by multiple users so it would appear that the update changed something regarding this.

MP Mr Papa
Mr Papa
Member

there were corrections made…  fixed some lingering issues in the time calculation…

but it usually comes down to your server timezone, your wp timezone setting and then the timezone each use has selected for themselves…  if users have not selected at timzone, they easily could be getting a timezone based time which may not be theirs…

thus far, no other reports of 5.0.5 getting off – just confirmation that the few issues previously were corrected… so will need to keep digging on data with yours to see what might be the cause….

VV Vitaly Vishnevsky
Vitaly Vishnevsky
Member

Try to change php.ini date.timezone to “Europe/London” for example and put it on your WP time aswell.