dateMenu: Fix regression that caused no date to be displayed

Commit ef0aa65774 broke the date
display; bring it back.
This commit is contained in:
Colin Walters 2012-06-26 14:00:35 -04:00
parent ae16da4e81
commit eb759cf22f

View File

@ -155,6 +155,12 @@ const DateMenuButton = new Lang.Class({
_updateClockAndDate: function() {
this._clockDisplay.set_text(this._clock.clock);
/* Translators: This is the date format to use when the calendar popup is
* shown - it is shown just below the time in the shell (e.g. "Tue 9:29 AM").
*/
let dateFormat = _("%A %B %e, %Y");
let displayDate = new Date();
this._date.set_text(displayDate.toLocaleFormat(dateFormat));
},
_onOpenCalendarActivate: function() {