From eca252a269a66b31dc6e3b56bbbbfc8283caca70 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Wed, 7 Jan 2015 10:28:46 -0600 Subject: [PATCH] Corrected moment code to use new format instead of depreciating format --- public/js/controllers/footerCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/controllers/footerCtrl.js b/public/js/controllers/footerCtrl.js index 4a42b10952..ccb4084860 100644 --- a/public/js/controllers/footerCtrl.js +++ b/public/js/controllers/footerCtrl.js @@ -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'); }