Support Forum

Post time display

CF Conrad_Farlow
Conrad_Farlow
Member

For some reason I am seeing things like

Last Post: paul4

-20229 seconds ago

Why seconds, I’d like it in hrs and then days if I must have this, alternatively (and even better) I’d like the actual post date and time. Is this another one of those options that I’ve missed.

71 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

I am not saying we have got this totally right yet and it would be a real help if you could set your timezones up so we can see the result.

Your preferred ‘server’ timezone is set in the wp admin panel Settings > General. So the first thing is to check that to see if it is accurately set.

Personal timezones are set in your SP profile. The point of these is that it should then display forum post dates and times relative to your actual location. So can you please check that as well?

I know that Steve has seen the -seconds issue but so far I have been unable to replicate the issue unless my timezones were incorrectly set. It might just be that of we discover a minus figure then we just switch back to the actual server time of the post but  we will have to discuss that move first.

meanwhile if you can check those two settings I would appreciate it.

LH Lee H
Lee H
Member

I’m not seeing this either. Except when I was over at Conrads place. Pretty freaky Surprised

MP Mr Papa
Mr Papa
Member

I see it too, but usually traced to improper setttings as Andy mentioned..  but would love feedback if the timezones are set properly and still wrong…

for me the problem is when using real server data on my local machine…   the server is in different timezone than my local machine so it throws off the time…  but gets back in line if I change the various options (wp and sp) to be right…

again, if those are correct, please post the data so we can try to see whats up…

CF Conrad_Farlow
Conrad_Farlow
Member

Both are set to London, Lee you have admin status can you confirm this please.

LH Lee H
Lee H
Member

I can confirm Conrads settings are:

London for WP timezone

0 for SP default timezone for new users.

I set my acct. over there to America New York (matches my computer)

And the time is shown in negative seconds. Not pretty at all.

YS Yellow Swordfish
Yellow Swordfish
Member

Conrad – could you check your personal profile timezone please? Go to the profile – display options where the timezone is. And open up the dropdown list. Is it set to London or is it in fact set to ‘UTC’ and if ther latter could you set it to London and look again?

PA paul4
paul4
Member

Hi all – just joining in Smile

I changed mine from UTC to London and I still get the negative seconds display

paul4

CF Conrad_Farlow
Conrad_Farlow
Member

My profile is set to London and always has been.

YS Yellow Swordfish
Yellow Swordfish
Member

So what was your server set to? Did you have to change that?
Because if you had to change either of them then you will need to make new posts to see if it is right or not.

CF Conrad_Farlow
Conrad_Farlow
Member

No I didn’t change anything I’m afraid they were always set as they are now.

YS Yellow Swordfish
Yellow Swordfish
Member

OK – sorry to bang on but I can not replicate this at all.
Can you please go to your profile – options – display options.
What exactly is the Timezone dropdown set to and what does it say underneath? Can you copy me the text?

CF Conrad_Farlow
Conrad_Farlow
Member

Certainly in fact I’ll do better than that.

LH Lee H
Lee H
Member

It seems to only affect views using sp_nicedate()

sp_nicedate() uses: time() and calculates the difference in seconds between now and the post udate (UTC?), would his server timezone or the users timezone even matter? Correct me if I’m wrong, but doesn’t time() use UTC by default unless a timezone is set by date_default_timezone_set()? Could another plugin be setting date_default_timezone_set() throwing everything off?

As close as I can figure, sp_nicedate()  on Conrads server is returning -21600 seconds (exactly -6 hours)

 

There I go thinking too much. Tell me to go jump in a lake if needed.

MP Mr Papa
Mr Papa
Member

what is the wp server time set to on wp – settings – options?