diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-cal-model.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |