aboutsummaryrefslogtreecommitdiffstats
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
parent278d1f1e786a55cfb45d7216ae7755ff89d56628 (diff)
downloadgsoc2013-evolution-19f4cb6cd02e744be57fa1f4f869311de6b6f24c.tar.gz
gsoc2013-evolution-19f4cb6cd02e744be57fa1f4f869311de6b6f24c.tar.zst
gsoc2013-evolution-19f4cb6cd02e744be57fa1f4f869311de6b6f24c.zip
Fixes #235909.
svn path=/trunk/; revision=32500
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/e-cal-model-tasks.c11
2 files changed, 17 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 7269248373..df53a590e3 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2006-08-08 Chenthill Palanisamy <pchenthill@novell.com>
+
+ Fixes bug #235909
+ * gui/e-cal-model-tasks.c (get_due_status): Get the timezone for
+ the due date field correctly.
+
+ Committing for Mubeen Jukaku <jmubeen@novell.com>
+
2006-08-07 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #350267
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)