Closed lironbar closed 6 years ago
calendarStartDate / calendarEndDate wrong calc when month start on Sunday and should be the first day view on calendar
calendarStartDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1 - (monthStartDate.getDay() == 0 ? 6 : (monthStartDate.getDay() - getFirstDayOfWeek()))),
the ? 6 should be set to 0 and not 6. same as calendarEndDate
great! thanks for the update
calendarStartDate / calendarEndDate wrong calc when month start on Sunday and should be the first day view on calendar
calendarStartDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1 - (monthStartDate.getDay() == 0 ? 6 : (monthStartDate.getDay() - getFirstDayOfWeek()))),
the ? 6 should be set to 0 and not 6. same as calendarEndDate