File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1805,6 +1805,13 @@ function calendar_time_representation($time) {
18051805 $ timeformat = get_config (null , 'calendar_site_timeformat ' );
18061806 }
18071807
1808+ // Allow language customization of selected time format.
1809+ if ($ timeformat === CALENDAR_TF_12 ) {
1810+ $ timeformat = get_string ('strftimetime12 ' , 'langconfig ' );
1811+ } else if ($ timeformat === CALENDAR_TF_24 ) {
1812+ $ timeformat = get_string ('strftimetime24 ' , 'langconfig ' );
1813+ }
1814+
18081815 return userdate ($ time , empty ($ timeformat ) ? $ langtimeformat : $ timeformat );
18091816}
18101817
Original file line number Diff line number Diff line change 4848$ string ['strftimerecent ' ] = '%d %b, %H:%M ' ;
4949$ string ['strftimerecentfull ' ] = '%a, %d %b %Y, %I:%M %p ' ;
5050$ string ['strftimetime ' ] = '%I:%M %p ' ;
51+ $ string ['strftimetime12 ' ] = '%I:%M %p ' ;
52+ $ string ['strftimetime24 ' ] = '%H:%M ' ;
5153$ string ['thisdirection ' ] = 'ltr ' ;
5254$ string ['thisdirectionvertical ' ] = 'btt ' ;
5355$ string ['thislanguage ' ] = 'English ' ;
You can’t perform that action at this time.
0 commit comments