Stats date display should use moodle timezone and not show time of day, date is enough

This commit is contained in:
mjollnir_
2005-10-28 01:36:59 +00:00
parent 1330905958
commit 404fe839d6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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
View File
@@ -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;