Skip to content

Commit

Permalink
Merge pull request mozilla-b2g#7217 from fabi1cazenave/date-824706
Browse files Browse the repository at this point in the history
Bug 824706 - [pt-BR] the digital clock does not appear
  • Loading branch information
fabi1cazenave committed Dec 27, 2012
2 parents a787ec7 + 9c4c3bc commit 16fefd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/homescreen/js/landing.js
Expand Up @@ -59,11 +59,12 @@ const LandingPage = (function() {
var date = new Date();

var time = dateTimeFormat.localeFormat(date, timeFormat);
clockElemNumbers.textContent = time.match(/([012]?\d):[0-5]\d/g);
clockElemNumbers.textContent = time.match(/([012]?\d).[0-5]\d/g);
clockElemMeridiem.textContent = (time.match(/AM|PM/i) || []).join('');
dateElem.textContent = dateTimeFormat.localeFormat(date, dateFormat);

return date;
}

}());

2 changes: 1 addition & 1 deletion apps/system/js/lockscreen.js
Expand Up @@ -683,7 +683,7 @@ var LockScreen = {
var timeFormat = _('shortTimeFormat') || '%H:%M';
var dateFormat = _('longDateFormat') || '%A %e %B';
var time = f.localeFormat(d, timeFormat);
this.clockNumbers.textContent = time.match(/([012]?\d):[0-5]\d/g);
this.clockNumbers.textContent = time.match(/([012]?\d).[0-5]\d/g);
this.clockMeridiem.textContent = (time.match(/AM|PM/i) || []).join('');
this.date.textContent = f.localeFormat(d, dateFormat);

Expand Down

0 comments on commit 16fefd4

Please sign in to comment.