From 78905834bd90a1787baaae1a958a3aba5a162723 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 14 Aug 2024 09:21:32 +0200 Subject: [PATCH] =?UTF-8?q?pas=20de=20mois=20ni=20de=20num=C3=A9ro=20de=20?= =?UTF-8?q?semaine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/helper.class.php | 6 ------ core/class/template.class.php | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 1bfcfc4f..7cf0c60e 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -484,12 +484,6 @@ class helper break; case self::FILTER_TIME: $text = date('H:i', $text); - break; - case self::FILTER_MONTH: - $text = date('m', $text); - break; - case self::FILTER_YEAR: - $text = date('Y', $text); } return $text; } diff --git a/core/class/template.class.php b/core/class/template.class.php index c0afc42b..5cbfda6e 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -224,7 +224,7 @@ class template * Crée un champ date * @param string $nameId Nom et id du champ * @param array $attributes Attributs ($key => $value) - * @param string type date time datetime-local month week + * @param string type date seule ; time heure seule ; datetime-local (jour et heure) * @return string */ public static function date($nameId, array $attributes = []) @@ -256,10 +256,10 @@ class template $filter = helper::FILTER_TIMESTAMP; break; case 'date': - $filter = helper::FILTER_DATE; + $filter = helper::FILTER_DATE; // Pour générer une valeur uniquement sur la date break; case 'time': - $filter = helper::FILTER_TIME; + $filter = helper::FILTER_TIME; // Pour générer une valeur uniquement sur l'heure break; default: $filter = null; // pas de filtre pour month and year