[FIX]: crm: Fixed computation of repeat Until, if I set 15th as until date, it must include 15th , but it was taking meetings till 14th only

bzr revid: rpa@tinyerp.com-20110414072716-q4ao5c2iczas19f6
This commit is contained in:
Rucha (Open ERP) 2011-04-14 12:57:16 +05:30
parent b0b547ef77
commit 077d56f53e
1 changed files with 1 additions and 1 deletions

View File

@ -1296,7 +1296,7 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
if name == "UNTIL":
is_until = True
value = parser.parse(value)
rrule_until_date = parser.parse(value.strftime("%Y-%m-%d"))
rrule_until_date = parser.parse(value.strftime("%Y-%m-%d %H:%M:%S"))
if until_date and until_date >= rrule_until_date:
until_date = rrule_until_date
if until_date: