Support Forum

Last post time

SP SPQC
SPQC
Member

I’m pretty sure when looking at the forums list we could see in ‘minutes’ and even in ‘seconds’ when the last post was made.  Now as soon as someone post a message, it says “1 hour”.  What could have changed this?

12 Answers

New Answer

SP SPQC
SPQC
Member

What do you mean?  I haven’t changed a setting about time in WP neither S:P

MP Mr Papa
Mr Papa
Member

server time or profile time…  daylight savings time?

but yes, you can get minutes and seconds on last post… definitely working here…

SP SPQC
SPQC
Member

Have no idea what’s going on and what to look for.  I make a new post and it shows 1 hour.  Can’t be S:P I haven’t played with the core and settings looks fine.

How do you compute the time to display?  Maybe I could try to write a similar simple php scritp and see how it behave and wat it returns?

YS Yellow Swordfish
Yellow Swordfish
Member

Have you checked that your two timezones settings are correct? The ‘server’ time on the WP Settings > General page and then your own personal timezone on your SP Profile?

SP SPQC
SPQC
Member

Yes both are the same and it was working a few days ago when the site went public.

I wrote to my host if they could have mofidied something and all they say is that they have applied an update to CentOS.  Never heard of this OS.  They list all the modules that have been updated and there is about 100!  They say they will do a restart of the server soon so I’ll see if it change anything.

YS Yellow Swordfish
Yellow Swordfish
Member

CentOS is one of the standard Linux installs. I doubt it will be the server but you never know. Will wait on this one.

AW Aaron Wentzel
Aaron Wentzel
Member

It doesn’t matter what combination of dates are used or if they are all set the same way (wp, sp, server) the two functions return different values.

sp_nicedate() returns correct only if you use UTC on WP, but, then sp_date() will return incorrectly.  One UtC offset works but then the other is double offset.

My fix was to only use nicedate() and use UTC on wp.

But, i think we’d all prefer a real fix so we can use both and expect the same outcome one nice and one datestamp, but, with the correct time.

MP Mr Papa
Mr Papa
Member

odd. because we havent seen that.  we dont use UTC with wp here and nicedate returns fine for us… 

but will have to let Andy weigh in as he has been sorting through any time issues…

YS Yellow Swordfish
Yellow Swordfish
Member

Aaron: (1) Have you upgraded SP to 5.0.4? (2) have you changed the WP server time zone (WP Settings > General)? This should never be changed once set – and should, of course, be set when the site was first established.

So – apart from those questions can you explain exactly what you think the problem is? And can you explain that in terms of any new post you are seeing?

AW Aaron Wentzel
Aaron Wentzel
Member

I have not.  Things are stable at this point so i’m going to hold off for now.  However, that said, do you have a page or document that states the updates/changes from 5.0.3 to 5.0.4?  Thanks

MP Mr Papa
Mr Papa
Member

http://mantis.simple-press.com/search.php?project_id=1&sticky_issues=on&target_version=5.0.4&sortby=status%2Cpriority&dir=ASC%2CDESC&hide_status_id=-2

is a list of the changes…  in the wp updater will also be a changelog you can view before you actually click on upgrade… view the details…

but it included a security fix (hence the urging to upgrade) and a post time fix affecting a few users…