main2
Bob Mottram 2019-10-10 20:06:32 +01:00
parent e6118ef5f3
commit 5a04f407d3
1 changed files with 2 additions and 2 deletions

View File

@ -2822,9 +2822,9 @@ def htmlCalendar(translate: {}, \
dayOfMonth=0 dayOfMonth=0
dow=weekDayOfMonthStart(monthNumber,year) dow=weekDayOfMonthStart(monthNumber,year)
for weekOfMonth in range(1,5): for weekOfMonth in range(1,6):
calendarStr+=' <tr>\n' calendarStr+=' <tr>\n'
for dayNumber in range(1,7): for dayNumber in range(1,8):
if (weekOfMonth>1 and dayOfMonth<=daysInMonth) or \ if (weekOfMonth>1 and dayOfMonth<=daysInMonth) or \
(weekOfMonth==1 and dayNumber>=dow): (weekOfMonth==1 and dayNumber>=dow):
dayOfMonth+=1 dayOfMonth+=1