From e4bafca03a543ca747b64ba506fc57c94beb75cf Mon Sep 17 00:00:00 2001 From: Jesper Ordrup Date: Fri, 24 Jan 2025 18:08:58 +0100 Subject: [PATCH] td --- weekdays.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weekdays.html b/weekdays.html index 02af870..632ed0a 100644 --- a/weekdays.html +++ b/weekdays.html @@ -239,7 +239,7 @@

Friday

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++; }