aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/cal-util/cal-recur.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 7a7238162c..2fe5e36a1b 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-06 Damon Chaplin <damon@ximian.com>
+
+ * cal-util/cal-recur.c (cal_recur_from_icalproperty): convert months
+ from 1-12 to 0-11. Fixes bug #19235.
+
2002-02-04 JP Rosevear <jpr@ximian.com>
* conduits/todo/todo-conduit.c (e_todo_gui_new): new gui routines
diff --git a/calendar/cal-util/cal-recur.c b/calendar/cal-util/cal-recur.c
index cfccdaf19f..e050004031 100644
--- a/calendar/cal-util/cal-recur.c
+++ b/calendar/cal-util/cal-recur.c
@@ -904,6 +904,7 @@ cal_recur_from_icalproperty (icalproperty *prop, gboolean exception,
struct icalrecurrencetype ir;
CalRecurrence *r;
gint max_elements, i;
+ GList *elem;
g_return_val_if_fail (prop != NULL, NULL);
@@ -956,6 +957,11 @@ cal_recur_from_icalproperty (icalproperty *prop, gboolean exception,
r->bymonth = array_to_list (ir.by_month,
sizeof (ir.by_month) / sizeof (ir.by_month[0]));
+ for (elem = r->bymonth; elem; elem = elem->next) {
+ /* We need to convert from 1-12 to 0-11, i.e. subtract 1. */
+ int month = GPOINTER_TO_INT (elem->data) - 1;
+ elem->data = GINT_TO_POINTER (month);
+ }
r->byweekno = array_to_list (ir.by_week_no,
sizeof (ir.by_week_no) / sizeof (ir.by_week_no[0]));
a20b006edcedc6df5c408d09'>- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-241-2/+1 * Presenting GNOME 2.20.1 and all related works for FreeBSD. The officialmarcus2007-10-252-16/+16 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * Chase the GNOME X11BASE to LOCALBASE move, and fix the build with themarcus2006-10-141-3/+3 * Remove USE_REINPLACE from all categories starting with Nedwin2006-05-121-1/+0 * Bump PORTREVISION on glib12/gtk12 consumer ports to ease the upgrade path.ade2006-03-071-1/+1 * Populate newly create net-p2p category with these ports:pav2006-01-311-2/+2 * SHA256ifyedwin2006-01-231-0/+1 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-3/+3 * Remove obsolete mastersite.linimon2005-10-131-2/+1 * Remove deprecated USE_SIZElioux2004-12-251-1/+0 * This now seems to install successfullykris2004-06-211-2/+0 * Update WWW tag in DESCR filelioux2004-03-281-1/+1 * USE_SIZEifylioux2004-02-082-0/+2 * Fix build with new gettext.marcus2004-02-051-0/+10 * Add USE_GETTEXT and bump PORTREVISION.marcus2004-02-041-3/+3 * Now gettext 0.12.1 is gettext-old.trevor2004-01-241-1/+1 * Per bento logs, mark as broken (does not install on either 4.x or 5.x).linimon2003-12-201-0/+2 * Bump the PORTREVISION for the ports directly affected by the gettext upgrade.marcus2003-08-271-0/+1 * Chase the libintl.so shared lib version.marcus2003-08-251-1/+1 * Remove USE_GNOMENG.marcus2003-04-211-1/+0 * De-pkg-commentlioux2003-02-242-1/+1