From 0fb5f2db0fa2d1eab01965ec9383410cab140348 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Mon, 11 Dec 2000 23:43:42 +0000 Subject: updated the tests on the start & end time just before calling the 2000-12-11 Damon Chaplin * cal-util/cal-recur.c (generate_instances_for_chunk): updated the tests on the start & end time just before calling the callback. It was skipping occurrences that started before the required interval's start time, which was wrong. We want all occurrences that intersect the interval. (cal_obj_time_weekday): removed the CalRecurrence* argument, since it isn't needed. svn path=/trunk/; revision=6925 --- calendar/cal-util/test-recur.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'calendar/cal-util/test-recur.c') diff --git a/calendar/cal-util/test-recur.c b/calendar/cal-util/test-recur.c index 2f1320ca86..a049ea955b 100644 --- a/calendar/cal-util/test-recur.c +++ b/calendar/cal-util/test-recur.c @@ -147,17 +147,26 @@ generate_occurrences (icalcomponent *icalcomp) g_print ("#############################################################################\n"); g_print ("%s\n\n", icalcomponent_as_ical_string (tmp_icalcomp)); + g_print ("Instances:\n"); occurrences = 0; + /* I use specific times when I am trying to pin down a bug seen + in one of the calendar views. */ #if 0 - cal_recur_generate_instances (comp, 972950400, 976492800, + cal_recur_generate_instances (comp, 982022400, 982108800, occurrence_cb, &occurrences); #else cal_recur_generate_instances (comp, -1, -1, occurrence_cb, &occurrences); #endif + /* Print the component again so we can see the + X-EVOLUTION-ENDDATE parameter (only set if COUNT is used). + */ + g_print ("#############################################################################\n"); +#if 0 g_print ("%s\n\n", icalcomponent_as_ical_string (tmp_icalcomp)); +#endif } } -- cgit v1.2.3