From 19f4cb6cd02e744be57fa1f4f869311de6b6f24c Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Tue, 8 Aug 2006 08:13:11 +0000 Subject: Fixes #235909. svn path=/trunk/; revision=32500 --- calendar/gui/e-cal-model-tasks.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'calendar/gui/e-cal-model-tasks.c') diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index c914dbf8c1..5875717b58 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -428,10 +428,17 @@ get_due_status (ECalModelTasks *model, ECalModelComponent *comp_data) 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) -- cgit v1.2.3