Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do you change the Freshness of post date format?

bump

Sam’s code works but still it displays the time in GMT rather than in my timezone. That doesn’t seem right cause it display the proper time since. How do I get that correctly?

(same thing with _ck_’s code – off the time zone and into GMT)

EDIT:

looking through some bbPress code I think I’ve got it right at last! The time has to be filtered through bb_offset_time, so the code should be(for post times):

echo date("date-format-goes-here", bb_offset_time(strtotime($bb_post->post_time)));

Still wonder why isn’t the time filtered when using sam’s code…

EDIT again:

and it does not localize – the date is in English… wonder how to set that up?

Skip to toolbar