Day of month

main2
Bob Mottram 2019-10-10 19:47:58 +01:00
parent 87a920d574
commit 6e73e451ae
1 changed files with 2 additions and 2 deletions

View File

@ -2744,7 +2744,7 @@ def htmlSearchEmojiTextEntry(translate: {}, \
emojiStr+=htmlFooter()
return emojiStr
def weekDayOfMonthStart(monthNumber: int,year: int):
def weekDayOfMonthStart(monthNumber: int,year: int) -> int:
"""Gets the day number of the first day of the month
1=sun, 7=sat
"""
@ -2825,7 +2825,7 @@ def htmlCalendar(translate: {}, \
calendarStr+=' <tr>\n'
for dayNumber in range(1,7):
if (weekOfMonth>1 and dayOfMonth<=daysInMonth) or \
(weekOfMonth==1 and dayNumber>=weekDayOfMonthStart(monthNumber,year)):
(weekOfMonth==1 and dayOfMonth>=weekDayOfMonthStart(monthNumber,year)):
dayOfMonth+=1
calendarStr+=' <td class="calendar__day__cell">'+str(dayOfMonth)+'</td>\n'
else: