Skip to content

Commit

Permalink
[schedule] fix max date
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoPennec committed Dec 6, 2024
1 parent b6c8895 commit b353b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/widgets/Schedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ export default {
dayOff => dayOff.date
)
do {
while (day.isSameOrBefore(endDate)) {
day.off = daysOff.includes(day.toISOString().slice(0, 10))
day.newWeek = day.isoWeekday() === 1
day.newMonth = day.date() === 1
Expand All @@ -714,7 +714,7 @@ export default {
day.dayText = day.format('ddd')[0]
days.push(day)
day = day.clone().add(1, 'days')
} while (day.isBefore(endDate))
}
// always show month and week number at start of schedule
if (days.length) {
Expand Down

0 comments on commit b353b3d

Please sign in to comment.