Info
- 5 posts
- 4 voices
- Started 5 years ago by seriouslydustin
- Latest reply from Michael Adams (mdawaffe)
- This topic is not a support question
Time Format
-
- Posted 5 years ago #
I've been scouring the whole code for bbPress and still couldn't figure out how to set up the format just how I want it for Date and Time (for the post).
Can anyone tell me where to go for such edits?
Much thanks.
-
- Posted 5 years ago #
Here's how I do it in my private messages plugin
strftime("%m/%d/%y at %r",strtotime($timevar)+($bb->gmt_offset * 60 * 60))Where $timevar is the time that I passed to the function.
-
- Posted 5 years ago #
BTW, that displays something like this:
01/05/07 at 10:21:21 -
- Posted 5 years ago #
Ands how does one change the time from
2007-01-16 18:23:58
to
January 16, 2007So no time, only date. I have added
<?php topic_time(); ?>to my frontpage and it shows: 2007-01-16 18:23:58, but on the fronpage (only there) I want to show it like: January 16, 2007Thx
-
- Posted 5 years ago #
In bbPress 0.8, you just pass the function the date format you want:
http://bbpress.org/blog/2007/02/bbpress-time-functions-no-longer-insane/#63-templates
-
You must log in to post.