forked from indymedia/epicyon
Maximum day of month
parent
7e50140f71
commit
9d52fcbf5a
|
@ -2825,7 +2825,7 @@ def htmlCalendar(translate: {}, \
|
||||||
for weekOfMonth in range(1,6):
|
for weekOfMonth in range(1,6):
|
||||||
calendarStr+=' <tr>\n'
|
calendarStr+=' <tr>\n'
|
||||||
for dayNumber in range(1,8):
|
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
|
||||||
calendarStr+=' <td class="calendar__day__cell">'+str(dayOfMonth)+'</td>\n'
|
calendarStr+=' <td class="calendar__day__cell">'+str(dayOfMonth)+'</td>\n'
|
||||||
|
|
Loading…
Reference in New Issue