From 111a9e13f20913bcf935155e09fe01916730c866 Mon Sep 17 00:00:00 2001 From: Darcy Date: Fri, 24 Oct 2014 07:11:09 +1100 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 79787eb8e..4bf22b46e 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() {