mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-71927' of https://github.com/timhunt/moodle
This commit is contained in:
commit
f2ed5255e5
@ -43,7 +43,9 @@ $string['strftimedatefullshort'] = '%d/%m/%y';
|
||||
$string['strftimedateshort'] = '%d %B';
|
||||
$string['strftimedateshortmonthabbr'] = '%d %b';
|
||||
$string['strftimedatetime'] = '%d %B %Y, %I:%M %p';
|
||||
$string['strftimedatetimeaccurate'] = '%d %B %Y, %I:%M:%S %p';
|
||||
$string['strftimedatetimeshort'] = '%d/%m/%y, %H:%M';
|
||||
$string['strftimedatetimeshortaccurate'] = '%d/%m/%y, %H:%M:%S';
|
||||
$string['strftimedaydate'] = '%A, %d %B %Y';
|
||||
$string['strftimedaydatetime'] = '%A, %d %B %Y, %I:%M %p';
|
||||
$string['strftimedayshort'] = '%A, %d %B';
|
||||
|
@ -302,7 +302,9 @@ class core_string_manager_standard implements core_string_manager {
|
||||
'strftimedatefullshort' => 1,
|
||||
'strftimedateshort' => 1,
|
||||
'strftimedatetime' => 1,
|
||||
'strftimedatetimeaccurate' => 1,
|
||||
'strftimedatetimeshort' => 1,
|
||||
'strftimedatetimeshortaccurate' => 1,
|
||||
'strftimedaydate' => 1,
|
||||
'strftimedaydatetime' => 1,
|
||||
'strftimedayshort' => 1,
|
||||
|
@ -472,7 +472,7 @@ class core_question_renderer extends plugin_renderer_base {
|
||||
$restrictedqa = new question_attempt_with_restricted_history($qa, $i, null);
|
||||
|
||||
$row = [$stepno,
|
||||
userdate($step->get_timecreated(), get_string('strftimedatetimeshort')),
|
||||
userdate($step->get_timecreated(), get_string('strftimedatetimeshortaccurate', 'core_langconfig')),
|
||||
s($qa->summarise_action($step)) . $this->action_author($step, $options),
|
||||
$restrictedqa->get_state_string($options->correctness)];
|
||||
|
||||
|
@ -145,9 +145,9 @@ class report_log_table_log extends table_sql {
|
||||
public function col_time($event) {
|
||||
|
||||
if (empty($this->download)) {
|
||||
$dateformat = get_string('strftimedatetime', 'core_langconfig');
|
||||
$dateformat = get_string('strftimedatetimeaccurate', 'core_langconfig');
|
||||
} else {
|
||||
$dateformat = get_string('strftimedatetimeshort', 'core_langconfig');
|
||||
$dateformat = get_string('strftimedatetimeshortaccurate', 'core_langconfig');
|
||||
}
|
||||
return userdate($event->timecreated, $dateformat);
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ class report_loglive_table_log extends table_sql {
|
||||
* @return string HTML for the time column
|
||||
*/
|
||||
public function col_time($event) {
|
||||
$recenttimestr = get_string('strftimedatetime', 'core_langconfig');
|
||||
$recenttimestr = get_string('strftimedatetimeaccurate', 'core_langconfig');
|
||||
return userdate($event->timecreated, $recenttimestr);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user