main2
Bob Mottram 2019-10-10 19:40:01 +01:00
parent c4416019cc
commit 87a920d574
1 changed files with 1 additions and 1 deletions

View File

@ -2749,7 +2749,7 @@ def weekDayOfMonthStart(monthNumber: int,year: int):
1=sun, 7=sat
"""
firstDayOfMonth=datetime(year, monthNumber, 1, 0, 0)
return int(firstDayOfMonth.strftime("%w")+1)
return int(firstDayOfMonth.strftime("%w"))+1
def htmlCalendar(translate: {}, \
baseDir: str,path: str) -> str: