mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Make comment post time display more user-friendly by displaying 'today', 'yesterday', 'x days ago' etc.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user