From 6400338f01d57280cb6108eb3bda4af8dff7ba78 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 13 Mar 2006 05:34:08 +0000 Subject: Fixes #334003 svn path=/trunk/; revision=31704 --- calendar/ChangeLog | 7 +++++++ calendar/gui/e-cal-model.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index fc24a6bd1f..fd4864ca30 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2006-03-09 Chenthill Palanisamy + + Fixes #334003 + * gui/e-cal-model.c: + (e_cal_model_set_instance_times): Use the timezone present in + the appointment. + 2006-03-06 Veerapuram Varadhan **Fixes #321832 diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index c3380d0cef..3ef8ba6e47 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -2099,8 +2099,10 @@ e_cal_model_set_instance_times (ECalModelComponent *comp_data, icaltimezone *zon icalcomponent_set_dtend (comp_data->icalcomp, end_time); } + if (start_time.zone) + zone = start_time.zone; + comp_data->instance_start = icaltime_as_timet_with_zone (start_time, zone); - comp_data->instance_end = comp_data->instance_start + - (icaltime_as_timet_with_zone (end_time, zone) - icaltime_as_timet_with_zone (start_time, zone)); + comp_data->instance_end = icaltime_as_timet_with_zone (end_time, zone); } -- cgit