MDL-49473 logs: ensure exported logs contain year

This commit is contained in:
Dan Poltawski
2015-11-03 11:38:45 +00:00
parent d70a6a7235
commit 5be2cb4ffa
+7 -2
View File
@@ -112,8 +112,13 @@ class report_log_table_log extends table_sql {
* @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);
}
/**