Stats date display should use moodle timezone and not show time of day, date is enough
This commit is contained in:
+1
-1
@@ -204,7 +204,7 @@
|
||||
$table->head[] = get_string('logs');
|
||||
|
||||
foreach ($stats as $stat) {
|
||||
$a = array(userdate($stat->timeend),$stat->line1);
|
||||
$a = array(userdate($stat->timeend,get_string('strftimedate'),$CFG->timezone),$stat->line1);
|
||||
if (isset($stat->line2)) {
|
||||
$a[] = $stat->line2;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
$graph->parameter['title'] = false; // moodle will do a nicer job.
|
||||
|
||||
foreach ($stats as $stat) {
|
||||
$graph->x_data[] = userdate($stat->timeend, "%a %d %b %y");
|
||||
$graph->x_data[] = userdate($stat->timeend,get_string('strftimedate'),$CFG->timezone);
|
||||
$graph->y_data['line1'][] = $stat->line1;
|
||||
if (isset($stat->line2)) {
|
||||
$graph->y_data['line2'][] = $stat->line2;
|
||||
|
||||
+1
-1
@@ -134,7 +134,7 @@
|
||||
$param->table = str_replace('user_','',$param->table);
|
||||
$table->head = array(get_string('periodending','moodle',$param->table),$param->line1,$param->line2,$param->line3);
|
||||
foreach ($stats as $stat) {
|
||||
$a = array(userdate($stat->timeend),$stat->line1);
|
||||
$a = array(userdate($stat->timeend,get_string('strftimedate'),$CFG->timezone),$stat->line1);
|
||||
$a[] = $stat->line2;
|
||||
$a[] = $stat->line3;
|
||||
$table->data[] = $a;
|
||||
|
||||
Reference in New Issue
Block a user