WordPress Plugins > WP-RelativeDate

Display problem

(1/1)

raducostin:
I use Wordpress 2.8.4 and "corp" theme. I have the following problem :

For a comment posted today i have the following output : "Today at 12:55 (6 hours ago)".
For a comment posted before today i have the following output : "3 September 2009 12:19 (3 days ago) at 12:19"

Hours and minutes appear twice. If I modify "comment-template.php" i lose the hour/minutes and relative time for comments posted today.

How do I solve this problem ?

GaMerZ:
Use:
--- Code: ---<?php comment_date('jS F Y') ?> at <?php comment_time() ?>
--- End code ---

raducostin:
Thanks. Problem solved.

I used
--- Code: ---<?php printf(__('%1$s at %2$s'), get_comment_date('jS F Y'),  get_comment_time()) ?>
--- End code ---

Navigation

[0] Message Index

Go to full version