From ebe5fb32cae32060a22550bfdfbd9511c7e71a32 Mon Sep 17 00:00:00 2001
From: Myriam Delaruelle
 <Myriam Delaruelle@bdn-un-mdelarue.ad.univ-lorraine.fr>
Date: Mon, 13 Sep 2021 11:48:25 +0200
Subject: [PATCH] fix date cron

---
 entity/course_format_iena_cron_action.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/entity/course_format_iena_cron_action.php b/entity/course_format_iena_cron_action.php
index 251c750..e6c6150 100644
--- a/entity/course_format_iena_cron_action.php
+++ b/entity/course_format_iena_cron_action.php
@@ -174,8 +174,8 @@
 			$messageContent .= "<h1>Rappel</h1>";
 			$messageContent .= "<h2>$course->fullname</h2>";
 
-			$date_jour = date('d/m', strtotime($section->daterendu));
-			$date_heure = date('H:i', strtotime($section->daterendu));
+			$date_jour = date('d/m', $section->daterendu);
+			$date_heure = date('H:i', $section->daterendu);
 
 			// 0 : NC
 			// 1 : work in the classroom
-- 
GitLab