[gnome-shell/gnome-3-14] dateMenu: Fix typo in _isToday()



commit f414f616c4d6fdb91f5007c9d555f92dd343b1a9
Author: Darcy <darcy beurle id au>
Date:   Fri Oct 24 07:11:09 2014 +1100

    dateMenu: Fix typo in _isToday()
    
    getDay() is the day of week, what we want there is getDate().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738725

 js/ui/dateMenu.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index db8f2a5..8b0213c 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -147,7 +147,7 @@ const DateMenuButton = new Lang.Class({
         let now = new Date();
         return now.getYear() == date.getYear() &&
                now.getMonth() == date.getMonth() &&
-               now.getDay() == date.getDay();
+               now.getDate() == date.getDate();
     },
 
     _appInstalledChanged: function() {


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