[9.2.13] format de date dans blog

pull/5/head
fredtempez 3 years ago
parent d26f8a38ba
commit 72240c810d
  1. 5
      module/blog/blog.php
  2. 2
      module/blog/view/article/article.php

@ -110,9 +110,8 @@ class blog extends common {
for($i = $pagination['first']; $i < $pagination['last']; $i++) {
// Met en forme le tableau
$comment = $comments[$commentIds[$i]];
self::$comments[] = [
//date('d/m/Y H:i', $comment['createdOn']),
strftime('%d %B %Y à %H:%M', $comment['createdOn']),
self::$comments[] = [
utf8_encode(strftime('%d %B %Y - %H:%M', $comment['createdOn'])),
$comment['content'],
$comment['userId'] ? $this->getData(['user', $comment['userId'], 'firstname']) . ' ' . $this->getData(['user', $comment['userId'], 'lastname']) : $comment['author'],
template::button('blogCommentDelete' . $commentIds[$i], [

@ -95,7 +95,7 @@
<?php else: ?>
<?php echo $comment['author']; ?>
<?php endif; ?>
le <?php echo strftime('%d %B %Y à %H:%M', $comment['createdOn']); ?>
le <?php echo utf8_encode(strftime('%d %B %Y - %H:%M', $comment['createdOn'])); ?>
</h4>
<?php echo $comment['content']; ?>
</div>

Loading…
Cancel
Save