Skip to content
Permalink
Browse files
Merge branch 'wip-MDL-60742-33' of git://github.com/marinaglancy/mood…
…le into MOODLE_33_STABLE
  • Loading branch information
David Monllao committed Jan 9, 2018
2 parents a324b49 + 505de33 commit 67240e4539ca379f6ff9d1bd5e6399d6bd8d317a
Showing with 9 additions and 0 deletions.
  1. +7 −0 calendar/lib.php
  2. +2 −0 lang/en/langconfig.php
@@ -2116,6 +2116,13 @@ function calendar_time_representation($time) {
$timeformat = get_config(null, 'calendar_site_timeformat');
}

// Allow language customization of selected time format.
if ($timeformat === CALENDAR_TF_12) {
$timeformat = get_string('strftimetime12', 'langconfig');
} else if ($timeformat === CALENDAR_TF_24) {
$timeformat = get_string('strftimetime24', 'langconfig');
}

return userdate($time, empty($timeformat) ? $langtimeformat : $timeformat);
}

@@ -48,6 +48,8 @@
$string['strftimerecent'] = '%d %b, %H:%M';
$string['strftimerecentfull'] = '%a, %d %b %Y, %I:%M %p';
$string['strftimetime'] = '%I:%M %p';
$string['strftimetime12'] = '%I:%M %p';
$string['strftimetime24'] = '%H:%M';
$string['thisdirection'] = 'ltr';
$string['thisdirectionvertical'] = 'btt';
$string['thislanguage'] = 'English';

0 comments on commit 67240e4

Please sign in to comment.