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:
Simey Lameze 2017-05-19 09:42:51 +08:00
parent 78ab4f741b
commit 01d22ff8c6
2 changed files with 7 additions and 5 deletions

View file

@ -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;