Permalink
Browse files

MDL-49473 logs: ensure exported logs contain year

  • Loading branch information...
danpoltawski committed Nov 3, 2015
1 parent c12979c commit 992591e0e122171c36c4cd31f802fc785593778c
Showing with 7 additions and 2 deletions.
  1. +7 −2 report/log/classes/table_log.php
@@ -112,8 +112,13 @@ public function col_course($event) {
* @return string HTML for the time column
*/
public function col_time($event) {
$recenttimestr = get_string('strftimerecent', 'core_langconfig');
return userdate($event->timecreated, $recenttimestr);
if (empty($this->download)) {
$dateformat = get_string('strftimerecent', 'core_langconfig');
} else {
$dateformat = get_string('strftimedatetimeshort', 'core_langconfig');
}
return userdate($event->timecreated, $dateformat);
}
/**

0 comments on commit 992591e

Please sign in to comment.