[evolution-patches] Patch to fix bug #235909



Hi,

Attached is patch to fix bug
http://bugzilla.gnome.org/show_bug.cgi?id=235909

Please see ChangeLog for details.

Thanks,
Mubeen

Index: gui/e-cal-model-tasks.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-cal-model-tasks.c,v
retrieving revision 1.32
diff -u -p -r1.32 e-cal-model-tasks.c
--- gui/e-cal-model-tasks.c	3 Oct 2005 06:16:51 -0000	1.32
+++ gui/e-cal-model-tasks.c	24 Oct 2005 07:12:55 -0000
@@ -427,10 +427,17 @@ get_due_status (ECalModelTasks *model, E
 			else
 				return E_CAL_MODEL_TASKS_DUE_FUTURE;
 		} else {
+			icalparameter *param;
+			const char *tzid;
+
+			if(!(param = icalproperty_get_first_parameter (prop, ICAL_TZID_PARAMETER)))
+				return E_CAL_MODEL_TASKS_DUE_FUTURE;
+
 			/* Get the current time in the same timezone as the DUE date.*/
-			if (!e_cal_get_timezone (comp_data->client, icaltime_get_tzid (due_tt), &zone, NULL))
+			tzid = icalparameter_get_tzid (param);
+			if (!e_cal_get_timezone (comp_data->client, tzid, &zone, NULL))
 				return E_CAL_MODEL_TASKS_DUE_FUTURE;
-			
+
 			now_tt = icaltime_current_time_with_zone (zone);
 
 			if (icaltime_compare (due_tt, now_tt) <= 0) 
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2833
diff -u -p -r1.2833 ChangeLog
--- ChangeLog	21 Oct 2005 10:02:34 -0000	1.2833
+++ ChangeLog	24 Oct 2005 07:14:48 -0000
@@ -1,3 +1,10 @@
+2005-10-24  Mubeen Jukaku  <jmubeen novell com>
+
+	* gui/e-cal-model-tasks.c (get_due_status): Get the timezone for
+	the due date field correctly.
+
+	Fixes bug #235909
+
 2005-10-21  Mubeen Jukaku  <jmubeen novell com>
 
 	Sankar Committting for Mubeen


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]