Skip to content

Commit

Permalink
RemedialCourse: Fix format date and student name #18221 - refs BT#18221
Browse files Browse the repository at this point in the history
  • Loading branch information
carlangas159 authored and AngelFQC committed May 21, 2021
1 parent 0cda07a commit 97759ed
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions main/exercise/exercise.class.php
Expand Up @@ -11110,6 +11110,7 @@ public static function notifyUsersOfTheExercise(
$end = $objExerciseTmp->end_time;
$start = $objExerciseTmp->start_time;
$minutes = $objExerciseTmp->expired_time;
$formatDate =DATE_TIME_FORMAT_LONG;

$teacherName = 'Nombre de profesor';

Expand All @@ -11129,13 +11130,15 @@ public static function notifyUsersOfTheExercise(
);
}
if (!empty($start)) {
$start = api_format_time($start);
// api_get_utc_datetime
$start = api_format_date(($start),$formatDate);

$content .= sprintf(get_lang('QuizRemindStartDate'),
$start
);
}
if (!empty($end)) {
$end = api_format_time($end);
$end = api_format_date(($end),$formatDate);
$content .= sprintf(get_lang('QuizRemindEndDate'),
$end
);
Expand All @@ -11154,8 +11157,8 @@ public static function notifyUsersOfTheExercise(
$drhName,
$studentName,
$quizTitle,
$studentName,
$courseTitle,
$studentName,
$courseTitle,
$quizTitle
);
Expand All @@ -11165,14 +11168,15 @@ public static function notifyUsersOfTheExercise(
);
}
if (!empty($start)) {
$start = api_format_time($start);
// api_get_utc_datetime
$start = api_format_date(($start),$formatDate);

$contentDHR .= sprintf(get_lang('QuizRemindStartDate'),
$start
);
}
if (!empty($end)) {
$end = api_format_time($end);
$end = api_format_date(($end),$formatDate);
$contentDHR .= sprintf(get_lang('QuizRemindEndDate'),
$end
);
Expand Down

0 comments on commit 97759ed

Please sign in to comment.