From e1f1f4aaadb1d4cf84c258b636fbc542dca8527a Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 2 Oct 2023 22:33:33 +0200 Subject: [PATCH] format date --- core/module/course/course.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/module/course/course.php b/core/module/course/course.php index 57c225d..b9c021b 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -339,8 +339,8 @@ class course extends common $message = helper::translate('Ce cours est fermé'); $state = false; if ($this->getData(['course', $courseId, 'access']) === self::COURSE_ACCESS_DATE) { - $from = helper::dateUTF8('%m %B %Y', $this->getData(['course', $courseId, 'openingDate'])) . helper::translate(' à ') . helper::dateUTF8('%H:%M', $this->getData(['course', $courseId, 'openingDate'])); - $to = helper::dateUTF8('%m %B %Y', $this->getData(['course', $courseId, 'closingDate'])) . helper::translate(' à ') . helper::dateUTF8('%H:%M', $this->getData(['course', $courseId, 'closingDate'])); + $from = helper::dateUTF8('%m/%m/%Y', $this->getData(['course', $courseId, 'openingDate'])) . helper::translate(' à ') . helper::dateUTF8('%H:%M', $this->getData(['course', $courseId, 'openingDate'])); + $to = helper::dateUTF8('%m/%m/%Y', $this->getData(['course', $courseId, 'closingDate'])) . helper::translate(' à ') . helper::dateUTF8('%H:%M', $this->getData(['course', $courseId, 'closingDate'])); $message = sprintf(helper::translate('Ce cours ouvre le
%s
et ferme le %s'), $from, $to); } }