Sunday offset

main2
Bob Mottram 2019-10-10 19:38:35 +01:00
parent 748fa86595
commit c4416019cc
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 1=sun, 7=sat
""" """
firstDayOfMonth=datetime(year, monthNumber, 1, 0, 0) firstDayOfMonth=datetime(year, monthNumber, 1, 0, 0)
return int(firstDayOfMonth.strftime("%w")) return int(firstDayOfMonth.strftime("%w")+1)
def htmlCalendar(translate: {}, \ def htmlCalendar(translate: {}, \
baseDir: str,path: str) -> str: baseDir: str,path: str) -> str: