mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
MDL-49473 logs: ensure exported logs contain year
This commit is contained in:
parent
821ab27c19
commit
72ae4ec8d4
@ -158,8 +158,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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user