mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 20:06:46 +02:00
MDL-58991 report_stats: use same date handling on chart rendering
This commmit fixes applies the same date handling used on stats table render to the charts render.
This commit is contained in:
parent
78ab4f741b
commit
01d22ff8c6
2 changed files with 7 additions and 5 deletions
|
@ -156,7 +156,7 @@ foreach ($stats as $stat) {
|
|||
if (!empty($stat->zerofixed)) { // Don't know why this is necessary, see stats_fix_zeros above - MD
|
||||
continue;
|
||||
}
|
||||
$a = array(userdate($stat->timeend,get_string('strftimedate'),$CFG->timezone),$stat->line1);
|
||||
$a = array(userdate($stat->timeend - DAYSECS, get_string('strftimedate'), $CFG->timezone), $stat->line1);
|
||||
$a[] = $stat->line2;
|
||||
$a[] = $stat->line3;
|
||||
$table->data[] = $a;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue