[gnome-shell] dateMenu: Fix regression that caused no date to be displayed



commit eb759cf22fc6afd9a0d0afb5bfbc34851413ca12
Author: Colin Walters <walters verbum org>
Date:   Tue Jun 26 14:00:35 2012 -0400

    dateMenu: Fix regression that caused no date to be displayed
    
    Commit ef0aa65774af02ef86d6b131b336c3914c6daf97 broke the date
    display; bring it back.

 js/ui/dateMenu.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 878cd35..5e5b3af 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -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() {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]