[FIX] +1 on the lengthmonth returns was too much, removed it

bzr revid: niels@bubbles-it.be-20090903151618-54w6ciiyr36e7z28
This commit is contained in:
Niels Huylebroeck
2009-09-03 17:16:18 +02:00
parent 9824b079bb
commit 2f216b5358
@@ -130,7 +130,7 @@ class report_custom(report_rml):
while day_diff1>0:
if month+i<=12:
if day_diff1 > lengthmonth(year,i+month)+1: # Not on 30 else you have problems when entering 01-01-2009 for example
if day_diff1 > lengthmonth(year,i+month): # Not on 30 else you have problems when entering 01-01-2009 for example
som1=datetime.date(year,month+i,1)
date_xml += ['<dayy number="%d" name="%s" cell="%d"/>' % (x, som1.replace(day=x).strftime('%a'),cell+x) for x in range(1, lengthmonth(year,i+month)+1)]
i=i+1