mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-67467 Reports: sortable date format in pregress csv report
date format in csv report should be sortable by date.
This commit is contained in:
parent
7850f76a93
commit
9514c1ac35
@ -315,7 +315,11 @@ foreach($activities as $activity) {
|
||||
$datepassedclass = $datepassed ? 'completion-expired' : '';
|
||||
|
||||
if ($activity->completionexpected) {
|
||||
$datetext=userdate($activity->completionexpected,get_string('strftimedate','langconfig'));
|
||||
if ($csv) {
|
||||
$datetext = userdate($activity->completionexpected, "%F %T");
|
||||
} else {
|
||||
$datetext = userdate($activity->completionexpected, get_string('strftimedate', 'langconfig'));
|
||||
}
|
||||
} else {
|
||||
$datetext='';
|
||||
}
|
||||
@ -415,6 +419,9 @@ foreach($progress as $user) {
|
||||
$fulldescribe=get_string('progress-title','completion',$a);
|
||||
|
||||
if ($csv) {
|
||||
if ($date != '') {
|
||||
$date = userdate($thisprogress->timemodified, "%F %T");
|
||||
}
|
||||
print $sep.csv_quote($describe).$sep.csv_quote($date);
|
||||
} else {
|
||||
$celltext = $OUTPUT->pix_icon('i/' . $completionicon, s($fulldescribe));
|
||||
|
Loading…
x
Reference in New Issue
Block a user