Permalink
Browse files

Stats date display should use moodle timezone and not show time of da…

…y, date is enough
  • Loading branch information...
1 parent 1330905 commit 404fe839d6a16ae2ebd1ce02dd827d3a148334f8 mjollnir_ committed Oct 28, 2005
Showing with 3 additions and 3 deletions.
  1. +1 −1 course/stats.php
  2. +1 −1 course/statsgraph.php
  3. +1 −1 course/user.php
View
@@ -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;
}
View
@@ -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;
View
@@ -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;

0 comments on commit 404fe83

Please sign in to comment.