File event date issue
parent
70cfafebb7
commit
6e6a58c22a
|
|
@ -131,7 +131,7 @@ function addEventsToDB(currentEvents, pageNumber, pageSize, callback){
|
|||
|
||||
function nextDay(startDate, dayOfWeek, hour, minutes, offset){
|
||||
startDate = new Date(startDate);
|
||||
hour = (hour * 60) + offset;
|
||||
hour = ((hour * 60) + offset)/60;
|
||||
startDate.setDate(startDate.getDate() + (dayOfWeek+(7-startDate.getDay())) % 7);
|
||||
startDate.setHours(hour);
|
||||
startDate.setMinutes(minutes);
|
||||
|
|
|
|||
Loading…
Reference in New Issue