Skip to content

Commit

Permalink
Merge branch 'MDL-83850-master' of https://github.com/danghieu1407/mo…
Browse files Browse the repository at this point in the history
  • Loading branch information
HuongNV13 committed Jan 22, 2025
2 parents 2eb108e + 4d3c859 commit 1414b38
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions report/progress/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,10 @@ function csv_quote($value) {
$datepassed = $activity->completionexpected && $activity->completionexpected <= time();
$datepassedclass = $datepassed ? 'completion-expired' : '';

if ($activity->completionexpected) {
if ($csv) {
$datetext = userdate($activity->completionexpected, "%F %T");
} else {
$datetext = userdate($activity->completionexpected, get_string('strftimedate', 'langconfig'));
}
if ($activity->completionexpected && !$csv) {
$datetext = userdate($activity->completionexpected, get_string('strftimedate', 'langconfig'));
} else {
$datetext='';
$datetext = get_string('completed');
}

// Some names (labels) come URL-encoded and can be very long, so shorten them
Expand Down

0 comments on commit 1414b38

Please sign in to comment.