File event date issue

Transactions
Dan 2017-09-29 15:22:58 -06:00
parent 4bc1e8daa2
commit 908244f49e
1 changed files with 2 additions and 1 deletions

View File

@ -136,7 +136,8 @@ function nextDay(startDate, dayOfWeek, hour, minutes, offset){
startDate.setMinutes(minutes); startDate.setMinutes(minutes);
startDate.setSeconds(0); startDate.setSeconds(0);
startDate.setMilliseconds(0); startDate.setMilliseconds(0);
startDate.setTime(startDate.getTime() - (offset * 60000)); console.log(startDate);
startDate.setTime(startDate.getTime() + (offset * 60000));
console.log(startDate); console.log(startDate);
return startDate; return startDate;
} }