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



commit 111a9e13f20913bcf935155e09fe01916730c866
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 79787eb..4bf22b4 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]