forked from indymedia/epicyon
Check for zero
parent
5bcf147c20
commit
9c39c886d2
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue