Skip to content

Commit

Permalink
td
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperordrup committed Jan 24, 2025
1 parent 72043b9 commit e4bafca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weekdays.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ <h3>Friday</h3>
let n = 0;
let t = 0;
while (td <= endDate) {
const isFridayButNotLastDay = currentDate.getDay() === 5 && td < endDate;
const isFridayButNotLastDay = td.getDay() === 5 && td < endDate;
if (isWeekday(td) && !isFridayButNotLastDay) {
t++;
}
Expand Down

0 comments on commit e4bafca

Please sign in to comment.