Bug 1331265 - Error "now.getTime is not a function" when creating a task with entry date. r=makemyday a=makemyday
authorDecathlon <bv1578@gmail.com>
Mon, 16 Jan 2017 23:20:05 +0100
changeset 27718 edbc5069cfa096c307e289dd9ef5f12233d96e84
parent 27717 5838e09017bfce17c76d09c539cf24128e9f2e03
child 27719 e1cda4717bd8b7bc76101a28bdf03bf6fa489651
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmakemyday, makemyday
bugs1331265
Bug 1331265 - Error "now.getTime is not a function" when creating a task with entry date. r=makemyday a=makemyday
calendar/base/src/calUtils.js
--- a/calendar/base/src/calUtils.js
+++ b/calendar/base/src/calUtils.js
@@ -1165,17 +1165,17 @@ function getProgressAtom(aTask) {
         } else if (aTask.dueDate.year == nowdate.getFullYear() &&
                    aTask.dueDate.month == nowdate.getMonth() &&
                    aTask.dueDate.day == nowdate.getDate()) {
             return "duetoday";
         }
     }
 
     if (aTask.entryDate && aTask.entryDate.isValid &&
-        cal.dateTimeToJsDate(aTask.entryDate).getTime() < now.getTime()) {
+        cal.dateTimeToJsDate(aTask.entryDate).getTime() < nowdate.getTime()) {
         return "inprogress";
     }
 
     return "future";
 }
 
 function calInterfaceBag(iid) {
     this.init(iid);