forked from indymedia/epicyon
Ranges
parent
e6118ef5f3
commit
5a04f407d3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue