diff options
Diffstat (limited to 'src/web/_views/comments.php')
-rw-r--r-- | src/web/_views/comments.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web/_views/comments.php b/src/web/_views/comments.php index d72afd6..7f8acf2 100644 --- a/src/web/_views/comments.php +++ b/src/web/_views/comments.php @@ -2,8 +2,7 @@ <?=aria_section('comments', lang('comments'))?> <?php foreach($comments as $comment) { - $date = date_create($comment['created']); - $date = date_format($date, "Y-m-d H:i"); + $date = $this->main->format_date($comment['created']); echo '<div class="comment">'; echo '<h3 class="header">' . esc($comment['author']) . '</h3>'; |