Info
- 5 posts
- 3 voices
- Started 2 years ago by BaraBajen
- Latest reply from BaraBajen
- This topic is resolved
Timestamp in topic replys as clock.
-
- Posted 2 years ago #
since my last try of getting help with my bbpress installation was a total succes I´ll try again.
How do I change the timestamp ("posted for XX minutes ago") to a regular clock. "Posted 13.16, september 10th"
Thanks for your help
/Patric
-
- Posted 2 years ago #
In
post.php, change<?php printf( __('Posted %s ago'), bb_get_post_time() ); ?>to<?php printf( __('Posted %s'), bb_get_post_time(array('format'=>'datetime')) ); ?>. You need to change the optiondatetime_formatto change how the date/time is formatted, not sure where that's set, so the All Options plugin might help. -
- Posted 2 years ago #
Help,
I changed to the above. Checked so that the datetime_format was put as it should be (as far as my knowledge says.
but the result came out: Posted 12pm30UTC305709UTC
Any ideas?
-
- Posted 2 years ago #
Try this code instead, this is what I'm using on my own forums:
<?php printf( __('Posted on %s'), bb_datetime_format_i18n( bb_get_post_time( array( 'format' => 'timestamp' ) ) ) ); ?>
-
- Posted 2 years ago #
Thanks for the help, both of you. The last reply was the one that was needed.
Great!
-
You must log in to post.