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
This commit is contained in:
Darcy 2014-10-24 07:11:09 +11:00 committed by Florian Müllner
parent 926f76635e
commit 111a9e13f2

View File

@ -147,7 +147,7 @@ const DateMenuButton = new Lang.Class({
let now = new Date(); let now = new Date();
return now.getYear() == date.getYear() && return now.getYear() == date.getYear() &&
now.getMonth() == date.getMonth() && now.getMonth() == date.getMonth() &&
now.getDay() == date.getDay(); now.getDate() == date.getDate();
}, },
_appInstalledChanged: function() { _appInstalledChanged: function() {