diff --git a/gcal/src/Calendar.tsx b/gcal/src/Calendar.tsx index 57f1577..b45dcf7 100644 --- a/gcal/src/Calendar.tsx +++ b/gcal/src/Calendar.tsx @@ -68,7 +68,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 = gregorianJDN(year, month, 1); - const firstWeekday = (firstJDN + 1) % 7; + const firstWeekday = (firstJDN % 7 + 8) % 7; const daysTotal = gregorianMonthDays(year, month); return
{decadeHeads}