From f414f616c4d6fdb91f5007c9d555f92dd343b1a9 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 db8f2a556..8b0213c83 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() {