From 7c302fa44e6504c1839bf489a6abca4fb9716311 Mon Sep 17 00:00:00 2001 From: Quantum Date: Tue, 1 Jul 2025 03:51:07 -0400 Subject: [PATCH] jcal: fix firstWeekday calculation --- jcal/src/Calendar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jcal/src/Calendar.tsx b/jcal/src/Calendar.tsx index 9baf68b..96931db 100644 --- a/jcal/src/Calendar.tsx +++ b/jcal/src/Calendar.tsx @@ -54,7 +54,7 @@ function Day({year, month, day, todayJDN}: DateProps & { todayJDN: number }): JS function Month({year, month, todayJDN}: MonthProps & { todayJDN: number }): JSX.Element { const decadeHeads = weekdayNames.map((name, i) => ); const firstJDN = julianJDN(year, month, 1); - const firstWeekday = (firstJDN % 8 + 8) % 7; + const firstWeekday = (firstJDN % 7 + 8) % 7; const daysTotal = julianMonthDays(year, month); return
{decadeHeads}