Corrected moment code to use new format instead of depreciating format

This commit is contained in:
Blade Barringer 2015-01-07 10:28:46 -06:00
parent 8ba0bb5d88
commit eca252a269

View file

@ -73,7 +73,7 @@
}
$scope.addMissedDay = function(){
if (!confirm("Are you sure you want to reset the day?")) return;
var dayBefore = moment(User.user.lastCron).subtract('days', 1).toDate();
var dayBefore = moment(User.user.lastCron).subtract(1, 'days').toDate();
User.set({'lastCron': dayBefore});
Notification.text('-1 day, remember to refresh');
}