From 63057dd048e894ccb4ed34fe2e4b975995823618 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Mon, 25 May 1998 21:51:34 +0000 Subject: Fix for the weekly event generation. Was reported on the bug tracking 1998-05-25 Miguel de Icaza * calobj.c (ical_object_generate_events): Fix for the weekly event generation. Was reported on the bug tracking system. svn path=/trunk/; revision=237 --- calendar/pcs/calobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/pcs') diff --git a/calendar/pcs/calobj.c b/calendar/pcs/calobj.c index 1a9ef3f206..d8ca3fe5db 100644 --- a/calendar/pcs/calobj.c +++ b/calendar/pcs/calobj.c @@ -1099,7 +1099,7 @@ ical_object_generate_events (iCalObject *ico, time_t start, time_t end, calendar /* Advance by day for scanning the week or by interval at week end */ if (tm->tm_wday == 6) - current = time_add_day (current, recur->interval); + current = time_add_day (current, (recur->interval-1) * 7 + 1); else current = time_add_day (current, 1); -- cgit v1.2.3