Skip to content

Commit

Permalink
Merge pull request mozilla-b2g#7374 from guiora/bug-822291
Browse files Browse the repository at this point in the history
Bug 822291 - [Status Bar] AM/PM is incorrectly implemented, r=kaze
  • Loading branch information
fabi1cazenave committed Jan 9, 2013
2 parents 1aaff97 + 8eb1b3d commit 6a51ebb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/system/js/statusbar.js
Expand Up @@ -285,7 +285,9 @@ var StatusBar = {
this._clockTimer =
window.setTimeout((this.update.time).bind(this), (59 - sec) * 1000);

this.icons.time.textContent = f.localeFormat(now, _('shortTimeFormat'));
var formated = f.localeFormat(now, _('shortTimeFormat'));
formated = formated.replace(/\s?(AM|PM)\s?/i, '<span>$1</span>');
this.icons.time.innerHTML = formated;

var label = this.icons.label;
var l10nArgs = JSON.parse(label.dataset.l10nArgs || '{}');
Expand Down
5 changes: 5 additions & 0 deletions apps/system/style/statusbar/statusbar.css
Expand Up @@ -81,6 +81,11 @@ body, html {
bottom: 2px;
}

#statusbar-time span {
margin: 0 0.3rem;
font-size: 1rem;
}

#screen.locked #statusbar-time {
display: none;
}
Expand Down

0 comments on commit 6a51ebb

Please sign in to comment.