Maximum day of month

main2
Bob Mottram 2019-10-10 20:21:32 +01:00
parent 7e50140f71
commit 9d52fcbf5a
1 changed files with 1 additions and 1 deletions

View File

@ -2825,7 +2825,7 @@ def htmlCalendar(translate: {}, \
for weekOfMonth in range(1,6):
calendarStr+=' <tr>\n'
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):
dayOfMonth+=1
calendarStr+=' <td class="calendar__day__cell">'+str(dayOfMonth)+'</td>\n'