Commit 884dab82 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add short date format

parent 2909d1c9
...@@ -172,7 +172,7 @@ class ArtefactTypeFileBase extends ArtefactType { ...@@ -172,7 +172,7 @@ class ArtefactTypeFileBase extends ArtefactType {
} }
else { else {
foreach ($filedata as $item) { foreach ($filedata as $item) {
$item->mtime = strftime(get_string('strftimedate'),strtotime($item->mtime)); $item->mtime = strftime(get_string('strfdaymonthyearshort'),strtotime($item->mtime));
} }
} }
......
...@@ -38,6 +38,7 @@ $string['strftimemonthyear'] = '%%B %%Y'; ...@@ -38,6 +38,7 @@ $string['strftimemonthyear'] = '%%B %%Y';
$string['strftimerecent'] = '%%d %%b, %%H:%%M'; $string['strftimerecent'] = '%%d %%b, %%H:%%M';
$string['strftimerecentfull'] = '%%a, %%d %%b %%Y, %%I:%%M %%p'; $string['strftimerecentfull'] = '%%a, %%d %%b %%Y, %%I:%%M %%p';
$string['strftimetime'] = '%%I:%%M %%p'; $string['strftimetime'] = '%%I:%%M %%p';
$string['strfdaymonthyearshort'] = '%%d/%%m/%%Y';
$string['thislanguage'] = 'English'; $string['thislanguage'] = 'English';
......
...@@ -181,7 +181,7 @@ function get_string_location($identifier, $section, $variables, $replacefunc='fo ...@@ -181,7 +181,7 @@ function get_string_location($identifier, $section, $variables, $replacefunc='fo
$langconfigstrs = array('parentlanguage', 'strftimedate', 'strftimedateshort', 'strftimedatetime', $langconfigstrs = array('parentlanguage', 'strftimedate', 'strftimedateshort', 'strftimedatetime',
'strftimedaydate', 'strftimedaydatetime', 'strftimedayshort', 'strftimedaytime', 'strftimedaydate', 'strftimedaydatetime', 'strftimedayshort', 'strftimedaytime',
'strftimemonthyear', 'strftimerecent', 'strftimerecentfull', 'strftimetime', 'strftimemonthyear', 'strftimerecent', 'strftimerecentfull', 'strftimetime',
'thislanguage'); 'strfdaymonthyearshort', 'thislanguage');
if (in_array($identifier, $langconfigstrs)) { if (in_array($identifier, $langconfigstrs)) {
$section = 'langconfig'; $section = 'langconfig';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment