Fixed minor bug in the date changer.

This commit is contained in:
Clinton Alexander 2016-07-08 16:39:51 +01:00
parent 230e230448
commit 914e6cf52c

View File

@ -45,7 +45,8 @@ define(['angular', 'lodash'], (angular, _) => {
break;
case "day":
newDate.setDate(date.getDate() + 1);
// +2 because date is 0 based in JS dates but 1 based in the API
newDate.setDate(date.getDate() + 2);
break;
}