Fix for the bug #272749 [exchange calendar]

pchenthill <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
Hi,
    Have attached the fix for the bug. The timezone needs to be added to
the backend, for the create_object to use it while creating a object at
the backend.
If we dont send the timezone component with the VCalendar, the object is
not create in the server.

thanks, Chenthill.

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
272749.diff (text/x-patch, 1.9 KB)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.471
diff -u -p -r1.471 ChangeLog
--- ChangeLog	27 Feb 2006 14:57:09 -0000	1.471
+++ ChangeLog	3 Mar 2006 08:57:01 -0000
@@ -1,3 +1,9 @@
+2006-03-03  Chenthill Palanisamy  <[email protected]>
+
+	Fixes #272749
+	* calendar/e-cal-backend-exchange-calendar.c: (receive_objects):
+	Add the timezones from the component to the backend.
+
 2006-02-27  Sushma Rai  <[email protected]>
 
 	* configure.in : Bumped the version to 2.5.92
Index: calendar/e-cal-backend-exchange-calendar.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/calendar/e-cal-backend-exchange-calendar.c,v
retrieving revision 1.52
diff -u -p -r1.52 e-cal-backend-exchange-calendar.c
--- calendar/e-cal-backend-exchange-calendar.c	27 Feb 2006 10:53:42 -0000	1.52
+++ calendar/e-cal-backend-exchange-calendar.c	3 Mar 2006 08:57:01 -0000
@@ -1429,7 +1429,7 @@ receive_objects (ECalBackendSync *backen
 	GList *comps, *l;
 	struct icaltimetype current;
 	icalproperty_method method;
-	icalcomponent *subcomp;
+	icalcomponent *subcomp, *icalcomp;
 	ECalBackendSyncStatus status = GNOME_Evolution_Calendar_Success;	
 
 	cbexc =	E_CAL_BACKEND_EXCHANGE_CALENDAR (backend);
@@ -1442,9 +1442,14 @@ receive_objects (ECalBackendSync *backen
                 return GNOME_Evolution_Calendar_InvalidObject;
         }
 
+
 	status = e_cal_backend_exchange_extract_components (calobj, &method, &comps);
 	if (status != GNOME_Evolution_Calendar_Success)
 		return GNOME_Evolution_Calendar_InvalidObject;
+		
+	icalcomp = icalparser_parse_string (calobj);
+	add_timezones_from_comp (E_CAL_BACKEND_EXCHANGE (backend), icalcomp);
+	icalcomponent_free (icalcomp);
 
 	for (l = comps; l; l= l->next) {
 		const char *uid, *rid;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.