diff options
author | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-12 12:00:13 +0000 |
---|---|---|
committer | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-12 12:00:13 +0000 |
commit | a1ca946a89e00a2daa22069aabf60e7a1151e78b (patch) | |
tree | 760808c9c1a9ccbae377322f2f639fc5bca0d92b /modules/comment/views | |
parent | ed8f1d4152d077529ac0f39d1aeb42186037e99f (diff) |
Make comment post time display more user-friendly by displaying 'today', 'yesterday', 'x days ago' etc.
Diffstat (limited to 'modules/comment/views')
-rw-r--r-- | modules/comment/views/comment_list.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/views/comment_list.html.php b/modules/comment/views/comment_list.html.php index ffd64c0c..1545a106 100644 --- a/modules/comment/views/comment_list.html.php +++ b/modules/comment/views/comment_list.html.php @@ -4,7 +4,7 @@ <li id="gComment-<?= $index; ?>" class="gComment <?= $index % 2 ? 'odd' : 'even' ?>"> <p> <a href="#" class="gAuthor"><?= $comment->author ?></a> - said <?= round((time() - $comment->datetime)/60) ?> minutes ago + <?= comment::format_elapsed_time($comment->datetime) ?>, <span class="understate"><?= strftime('%c', $comment->datetime) ?></span> </p> <div> |