Test dates

Transactions
Dan 2017-09-28 21:58:58 -06:00
parent 9753ae6b32
commit 2e3a2c3749
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ function nextDay(startDate, dayOfWeek, hour, offset){
startDate.setMinutes(0); startDate.setMinutes(0);
startDate.setSeconds(0); startDate.setSeconds(0);
startDate.setMilliseconds(0); startDate.setMilliseconds(0);
startDate.setOffset(offset); startDate.setTime(startDate.getTime() + (offset * 60000));
return startDate; return startDate;
} }