diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 8 | ||||
-rw-r--r-- | calendar/gui/e-cal-model-tasks.c | 11 |
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) |