From ff875c37684edfa4a9349e2c1de66950de6b3091 Mon Sep 17 00:00:00 2001 From: Peter Teichman Date: Mon, 2 Aug 1999 03:47:49 +0000 Subject: The multi-day appointment corruption bug is dead. Whoo! * calendar-pilot-sync.c (sync_object_to_pilot): The multi-day appointment corruption bug is dead. Whoo! svn path=/trunk/; revision=1057 --- calendar/gui/calendar-pilot-sync.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/calendar-pilot-sync.c b/calendar/gui/calendar-pilot-sync.c index 0b9d3b1206..12f15d33ad 100644 --- a/calendar/gui/calendar-pilot-sync.c +++ b/calendar/gui/calendar-pilot-sync.c @@ -396,14 +396,19 @@ sync_object_to_pilot (GNOME_Calendar_Repository repo, iCalObject *obj, int pilot if ((a->end.tm_mday != a->begin.tm_mday) || (a->end.tm_mon != a->begin.tm_mon) || (a->end.tm_year != a->begin.tm_year)){ + a->event = 1; + a->begin.tm_sec = 0; + a->begin.tm_min = 0; + a->begin.tm_hour = 0; + + a->end.tm_sec = 0; + a->end.tm_min = 0; + a->end.tm_hour = 0; a->repeatEnd = a->end; a->repeatForever = 0; - a->repeatFrequency = 0; + a->repeatFrequency = 1; a->repeatType = repeatDaily; - a->end.tm_mday = a->begin.tm_mday; - a->end.tm_mon = a->begin.tm_mon; - a->end.tm_year = a->begin.tm_year; } /* @@ -447,6 +452,7 @@ sync_object_to_pilot (GNOME_Calendar_Repository repo, iCalObject *obj, int pilot dlp_WriteRecord ( pilot_fd, db, 0, obj->pilot_id, 0, buffer, rec_len, &new_id); + GNOME_Calendar_Repository_update_pilot_id (repo, obj->uid, new_id, ICAL_PILOT_SYNC_NONE, &ev); free_Appointment (a); -- cgit v1.2.3