aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/test-recur.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-12-12 07:43:42 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-12-12 07:43:42 +0800
commit0fb5f2db0fa2d1eab01965ec9383410cab140348 (patch)
tree12579107cab19be0e2b5d464b1d38a082ecf6b16 /calendar/cal-util/test-recur.c
parent8997c57f5c1451e366a374a6e0bb74aa2f37e832 (diff)
downloadgsoc2013-evolution-0fb5f2db0fa2d1eab01965ec9383410cab140348.tar.gz
gsoc2013-evolution-0fb5f2db0fa2d1eab01965ec9383410cab140348.tar.zst
gsoc2013-evolution-0fb5f2db0fa2d1eab01965ec9383410cab140348.zip
updated the tests on the start & end time just before calling the
2000-12-11 Damon Chaplin <damon@helixcode.com> * 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
Diffstat (limited to 'calendar/cal-util/test-recur.c')
-rw-r--r--calendar/cal-util/test-recur.c11
1 files changed, 10 insertions, 1 deletions
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
}
}