aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-11-29 16:15:08 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-11-29 16:15:08 +0800
commitd945a55a5f8fcffc74545d8d42394bcecdea2402 (patch)
tree4c3d2dea0e4fccc47df4724a4f73a55033387cd9 /calendar/gui
parent32ba5f5d60424e11453da6b01ffcb87323d91ac4 (diff)
downloadgsoc2013-evolution-d945a55a5f8fcffc74545d8d42394bcecdea2402.tar
gsoc2013-evolution-d945a55a5f8fcffc74545d8d42394bcecdea2402.tar.gz
gsoc2013-evolution-d945a55a5f8fcffc74545d8d42394bcecdea2402.tar.bz2
gsoc2013-evolution-d945a55a5f8fcffc74545d8d42394bcecdea2402.tar.lz
gsoc2013-evolution-d945a55a5f8fcffc74545d8d42394bcecdea2402.tar.xz
gsoc2013-evolution-d945a55a5f8fcffc74545d8d42394bcecdea2402.tar.zst
gsoc2013-evolution-d945a55a5f8fcffc74545d8d42394bcecdea2402.zip
fixes #322616
svn path=/trunk/; revision=30704
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-cal-model-calendar.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/calendar/gui/e-cal-model-calendar.c b/calendar/gui/e-cal-model-calendar.c
index aa3d667b62..d79a5eecde 100644
--- a/calendar/gui/e-cal-model-calendar.c
+++ b/calendar/gui/e-cal-model-calendar.c
@@ -116,7 +116,7 @@ get_dtend (ECalModelCalendar *model, ECalModelComponent *comp_data)
if (!comp_data->dtend) {
icalproperty *prop;
- icaltimezone *zone, *model_zone;
+ icaltimezone *zone = NULL, *model_zone = NULL;
gboolean got_zone = FALSE;
prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_DTEND_PROPERTY);
@@ -129,13 +129,16 @@ get_dtend (ECalModelCalendar *model, ECalModelComponent *comp_data)
&& e_cal_get_timezone (comp_data->client, icaltime_get_tzid (tt_end), &zone, NULL))
got_zone = TRUE;
+ model_zone = e_cal_model_get_timezone (E_CAL_MODEL (model));
+
if (e_cal_model_get_flags (E_CAL_MODEL (model)) & E_CAL_MODEL_FLAGS_EXPAND_RECURRENCES) {
if (got_zone) {
tt_end = icaltime_from_timet_with_zone (comp_data->instance_end, tt_end.is_date, zone);
- if ((model_zone = e_cal_model_get_timezone (E_CAL_MODEL (model))))
+ if (model_zone)
icaltimezone_convert_time (&tt_end, zone, model_zone);
} else
- tt_end = icaltime_from_timet (comp_data->instance_end, tt_end.is_date);
+ tt_end = icaltime_from_timet_with_zone (comp_data->instance_end, tt_end.is_date,
+ model_zone);
}
if (!icaltime_is_valid_time (tt_end) || icaltime_is_null_time (tt_end))