From 69af3f7e405ce4a6228d3c6227d0a94437673c18 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 18 Nov 2018 20:22:19 +0100 Subject: [PATCH] v8.4.6 : encodage des dates --- module/blog/blog.php | 2 +- module/news/news.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index 7ba0637b..1882efe9 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -163,7 +163,7 @@ class blog extends common { self::$articles[] = [ $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'title']), // date('d/m/Y H:i', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn'])), - strftime('%d %B %Y à %H:%M', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn'])), + utf8_encode(strftime('%d %B %Y - %H:%M', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn']))), self::$states[$this->getData(['module', $this->getUrl(0), $articleIds[$i], 'state'])], template::button('blogConfigEdit' . $articleIds[$i], [ 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $articleIds[$i], diff --git a/module/news/news.php b/module/news/news.php index 60f5dfc4..4d0c7b05 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -90,7 +90,7 @@ class news extends common { // Met en forme le tableau self::$news[] = [ $this->getData(['module', $this->getUrl(0), $newsIds[$i], 'title']), - date('d/m/Y H:i', $this->getData(['module', $this->getUrl(0), $newsIds[$i], 'publishedOn'])), + utf8_encode(strftime('%d %B %Y - %H:%M', $this->getData(['module', $this->getUrl(0), $newsIds[$i], 'publishedOn']))), self::$states[$this->getData(['module', $this->getUrl(0), $newsIds[$i], 'state'])], template::button('newsConfigEdit' . $newsIds[$i], [ 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsIds[$i],