app/assets/javascripts/i18n.js in i18n-js-3.4.2 vs app/assets/javascripts/i18n.js in i18n-js-3.5.0
- old
+ new
@@ -895,11 +895,11 @@
// %B - The full month name (January)
// %c - The preferred local date and time representation
// %d - Day of the month (01..31)
// %-d - Day of the month (1..31)
// %H - Hour of the day, 24-hour clock (00..23)
- // %-H - Hour of the day, 24-hour clock (0..23)
+ // %-H/%k - Hour of the day, 24-hour clock (0..23)
// %I - Hour of the day, 12-hour clock (01..12)
// %-I/%l - Hour of the day, 12-hour clock (1..12)
// %m - Month of the year (01..12)
// %-m - Month of the year (1..12)
// %M - Minute of the hour (00..59)
@@ -959,9 +959,10 @@
format = format.replace("%d", padding(day));
format = format.replace("%e", day);
format = format.replace("%-d", day);
format = format.replace("%H", padding(hour));
format = format.replace("%-H", hour);
+ format = format.replace("%k", hour);
format = format.replace("%I", padding(hour12));
format = format.replace("%-I", hour12);
format = format.replace("%l", hour12);
format = format.replace("%m", padding(month));
format = format.replace("%-m", month);