From d49d3cbb75d5a760651350a687513b74574dc00a Mon Sep 17 00:00:00 2001 From: Dat Nguyen Date: Wed, 16 Mar 2022 14:21:29 +0700 Subject: [PATCH] MDL-74061 blocks_completion: Adding time in completion progress details --- blocks/completionstatus/details.php | 2 +- lang/en/langconfig.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/completionstatus/details.php b/blocks/completionstatus/details.php index 33bbe775f85..6f26c94df3c 100644 --- a/blocks/completionstatus/details.php +++ b/blocks/completionstatus/details.php @@ -243,7 +243,7 @@ if (empty($completions)) { // Completion data. echo html_writer::start_tag('td', array('class' => 'cell c5')); if ($row['timecompleted']) { - echo userdate($row['timecompleted'], get_string('strftimedate', 'langconfig')); + echo userdate($row['timecompleted'], get_string('strftimedatemonthtimeshort', 'langconfig')); } else { echo '-'; } diff --git a/lang/en/langconfig.php b/lang/en/langconfig.php index e4d6647c3f1..81d418d0227 100644 --- a/lang/en/langconfig.php +++ b/lang/en/langconfig.php @@ -39,6 +39,7 @@ $string['oldcharset'] = 'ISO-8859-1'; $string['parentlanguage'] = ''; $string['strftimedate'] = '%d %B %Y'; $string['strftimedatemonthabbr'] = '%d %b %Y'; +$string['strftimedatemonthtimeshort'] = '%d %b %Y, %I:%M'; $string['strftimedatefullshort'] = '%d/%m/%y'; $string['strftimedateshort'] = '%d %B'; $string['strftimedateshortmonthabbr'] = '%d %b';