I'm trying to hide holidays and sundays from a gantt with highcharts js
I have the following code in which I go through an array where the holidays and Sundays are
JS
breaks: diasFestivos.map(function(fecha) {
return {
from: new Date(fecha).setUTCHours(0, 0, 0, 0),
to: new Date(fecha).setUTCHours(23, 59, 59, 999),
breakSize: 0,
};
})
I also tried this way but the end result is the same
JS
breaks: diasFestivos.map(function(fecha) {
return {
from: new Date(fecha).getTime(),
to: new Date(fecha).getTime(),
breakSize: 0,
};
})
But more dates are hidden in the gantt than I have in my non-working days arrangement. Why does this happen?.
As I show in the image, more days should appear between those dates