|
|
@ -221,14 +221,14 @@ async function initGanttSettings() { |
|
|
|
gantt.setWorkTime({ day: dayoff[i], hours: false }); |
|
|
|
gantt.setWorkTime({ day: dayoff[i], hours: false }); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
for (let index = 1; index <= 7; index++) { |
|
|
|
// for (let index = 1; index <= 7; index++) {
|
|
|
|
const dateToCheck = new Date(2023, 4, index); // Note: Month is 0-based, so 5 represents June
|
|
|
|
// const dateToCheck = new Date(2023, 4, index); // Note: Month is 0-based, so 5 represents June
|
|
|
|
if (gantt.isWorkTime({ date: dateToCheck, hours: false })) { |
|
|
|
// if (gantt.isWorkTime({ date: dateToCheck, hours: false })) {
|
|
|
|
console.log(dateToCheck.toString() + ' is work time.'); |
|
|
|
// console.log(dateToCheck.toString() + ' is work time.');
|
|
|
|
} else { |
|
|
|
// } else {
|
|
|
|
console.log(dateToCheck.toString() + ' is not work time.'); |
|
|
|
// console.log(dateToCheck.toString() + ' is not work time.');
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|