Fix issue with biweekly meetings

Fix biweekly recurrence to correctly use next_weekday function.

Change-Id: I9cbfb6e34c597f04cae3ac4c90790b85b534908b
This commit is contained in:
Thierry Carrez 2015-02-19 12:39:43 +01:00
parent fefadc0d24
commit 3434d6294b
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def next_biweekly_meeting(current_date_time, day, meet_on_even=False):
if current_date_time > next_meeting:
current_date_time = current_date_time.replace(
month=current_date_time.month + 1, day=1)
first_wday_next_mo = next_weekday(current_date_time, weekday)
first_wday_next_mo = next_weekday(current_date_time, day)
if meet_on_even:
next_meeting = first_wday_next_mo + datetime.timedelta(7)
else: