aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-08-08 16:13:11 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-08-08 16:13:11 +0800
commit19f4cb6cd02e744be57fa1f4f869311de6b6f24c (patch)
treea566e3b3bc4acdcd63f2ed1aa7a704e6c0bcf8c0 /calendar/gui
parent278d1f1e786a55cfb45d7216ae7755ff89d56628 (diff)
downloadgsoc2013-evolution-19f4cb6cd02e744be57fa1f4f869311de6b6f24c.tar
gsoc2013-evolution-19f4cb6cd02e744be57fa1f4f869311de6b6f24c.tar.gz
gsoc2013-evolution-19f4cb6cd02e744be57fa1f4f869311de6b6f24c.tar.bz2
gsoc2013-evolution-19f4cb6cd02e744be57fa1f4f869311de6b6f24c.tar.lz
gsoc2013-evolution-19f4cb6cd02e744be57fa1f4f869311de6b6f24c.tar.xz
gsoc2013-evolution-19f4cb6cd02e744be57fa1f4f869311de6b6f24c.tar.zst
gsoc2013-evolution-19f4cb6cd02e744be57fa1f4f869311de6b6f24c.zip
Fixes #235909.
svn path=/trunk/; revision=32500
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-cal-model-tasks.c11
1 files changed, 9 insertions, 2 deletions
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)