Skip to content

Commit

Permalink
Merge pull request mozilla-b2g#7195 from fabi1cazenave/l10n-date
Browse files Browse the repository at this point in the history
bug 824210: [l10n_date.js] '%e' is not supported on Windows, r=etienne, a=21
  • Loading branch information
fabi1cazenave committed Dec 26, 2012
2 parents 18b4832 + 73386ee commit 9ad3ad8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shared/js/l10n_date.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ navigator.mozL10n.DateTimeFormat = function(locales, options) {
case '%B':
value = _('month-' + d.getMonth() + '-long');
break;

// like %H, but in 12-hour format and without any leading zero
case '%I':
value = d.getHours() % 12 || 12;
break;

// like %d, without any leading zero
case '%e':
value = d.getDate();
break;

// localized date/time strings
case '%c':
case '%x':
Expand Down

0 comments on commit 9ad3ad8

Please sign in to comment.