aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>1999-07-30 00:24:16 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-07-30 00:24:16 +0800
commit92e605a31eece7d7e15a24aa1ba791000db834f8 (patch)
tree893c19a17cf55e2271f29df33f10aa4457bd35d7 /calendar/gui
parentcabedf4da95562f8372a543840748ea43dff2a91 (diff)
downloadgsoc2013-evolution-92e605a31eece7d7e15a24aa1ba791000db834f8.tar
gsoc2013-evolution-92e605a31eece7d7e15a24aa1ba791000db834f8.tar.gz
gsoc2013-evolution-92e605a31eece7d7e15a24aa1ba791000db834f8.tar.bz2
gsoc2013-evolution-92e605a31eece7d7e15a24aa1ba791000db834f8.tar.lz
gsoc2013-evolution-92e605a31eece7d7e15a24aa1ba791000db834f8.tar.xz
gsoc2013-evolution-92e605a31eece7d7e15a24aa1ba791000db834f8.tar.zst
gsoc2013-evolution-92e605a31eece7d7e15a24aa1ba791000db834f8.zip
If the enddate is not set, set the repeatForever to 1. This fixes all of
1999-07-28 Miguel de Icaza <miguel@gnu.org> * calendar-pilot-sync.c: (sync_object_to_pilot): If the enddate is not set, set the repeatForever to 1. This fixes all of the birthdays problems I had. svn path=/trunk/; revision=1042
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-pilot-sync.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/calendar/gui/calendar-pilot-sync.c b/calendar/gui/calendar-pilot-sync.c
index d0bd03ed75..0b9d3b1206 100644
--- a/calendar/gui/calendar-pilot-sync.c
+++ b/calendar/gui/calendar-pilot-sync.c
@@ -384,7 +384,10 @@ sync_object_to_pilot (GNOME_Calendar_Repository repo, iCalObject *obj, int pilot
a->repeatType = repeatNone;
break;
}
- a->repeatEnd = *localtime (&obj->recur->_enddate);
+ if (obj->recur->enddate == 0){
+ a->repeatForever = 1;
+ } else
+ a->repeatEnd = *localtime (&obj->recur->enddate);
}
/*
@@ -442,8 +445,8 @@ sync_object_to_pilot (GNOME_Calendar_Repository repo, iCalObject *obj, int pilot
attr &= ~dlpRecAttrDirty;
dlp_WriteRecord (
- pilot_fd, db, attr,
- obj->pilot_id, cat, buffer, rec_len, &new_id);
+ 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);