mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
Corrected moment code to use new format instead of depreciating format
This commit is contained in:
parent
8ba0bb5d88
commit
eca252a269
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue