From 78488cdc9508883b09ac0290e033c89409904f2c Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 17 Feb 2023 14:35:42 +0100 Subject: [PATCH] News date format --- module/news/news.php | 2 ++ module/news/view/index/index.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/module/news/news.php b/module/news/news.php index 6a9c48ac..fea6e372 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -539,6 +539,8 @@ class news extends common // Mise en forme de la signature self::$news[$newsIds[$i]]['userId'] = $this->signature($this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'userId'])); } + self::$dateFormat = $this->getData(['module', $this->getUrl(0), 'config', 'dateFormat']); + self::$timeFormat = $this->getData(['module', $this->getUrl(0), 'config', 'timeFormat']); // Valeurs en sortie $this->addOutput([ 'showBarEditButton' => true, diff --git a/module/news/view/index/index.php b/module/news/view/index/index.php index 9055e98e..62e844fb 100644 --- a/module/news/view/index/index.php +++ b/module/news/view/index/index.php @@ -10,7 +10,7 @@ - +