From 72240c810d27c1bf4542c0e15a9aa66fd7dddbaa Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 3 Dec 2019 18:19:34 +0100 Subject: [PATCH] [9.2.13] format de date dans blog --- module/blog/blog.php | 5 ++--- module/blog/view/article/article.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index 736fe3f2..0b6b8df3 100644 --- a/module/blog/blog.php +++ b/module/blog/blog.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], [ diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index d2c8ad27..08e28d58 100644 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -95,7 +95,7 @@ - le + le