dateMenu: Fix regression that caused no date to be displayed
Commit ef0aa65774
broke the date
display; bring it back.
This commit is contained in:
parent
ae16da4e81
commit
eb759cf22f
@ -155,6 +155,12 @@ const DateMenuButton = new Lang.Class({
|
|||||||
|
|
||||||
_updateClockAndDate: function() {
|
_updateClockAndDate: function() {
|
||||||
this._clockDisplay.set_text(this._clock.clock);
|
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() {
|
_onOpenCalendarActivate: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user