aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/calobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-util/calobj.c')
-rw-r--r--calendar/cal-util/calobj.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c
index b57f660a7b..60cb2f29d5 100644
--- a/calendar/cal-util/calobj.c
+++ b/calendar/cal-util/calobj.c
@@ -928,7 +928,7 @@ generate (iCalObject *ico, time_t reference, calendarfn cb, void *closure)
s_t = mktime (&dt_start);
if (ico->exdate && is_date_in_list (ico->exdate, &dt_start))
- return;
+ return 1;
e_t = mktime (&dt_end);
@@ -1111,9 +1111,12 @@ static int
duration_callback (iCalObject *ico, time_t start, time_t end, void *closure)
{
int *count = closure;
+ struct tm *tm;
- if (ico->exdate && is_date_in_list (ico->exdate, &start))
- return;
+ tm = localtime (&start);
+
+ if (ico->exdate && is_date_in_list (ico->exdate, tm))
+ return 1;
(*count)++;
if (ico->recur->duration == *count) {