Check for zero

main2
Bob Mottram 2019-10-10 19:34:50 +01:00
parent 5bcf147c20
commit 9c39c886d2
1 changed files with 4 additions and 4 deletions

View File

@ -2774,10 +2774,10 @@ def htmlCalendar(translate: {}, \
first=False first=False
actor=actor.split('?')[0] actor=actor.split('?')[0]
if year==1970 and monthNumber==1: if year==1970 and monthNumber==0:
now=datetime.datetime.now() currDate=datetime.datetime.now()
year=now.year year=currDate.year
monthNumber=now.month monthNumber=currDate.month
print('Calendar year='+str(year)+' month='+str(monthNumber)) print('Calendar year='+str(year)+' month='+str(monthNumber))