[evolution] Bug 753764 - Can't move recurring 24h calendar entries back one day
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 753764 - Can't move recurring 24h calendar entries back one day
- Date: Thu, 20 Aug 2015 11:23:24 +0000 (UTC)
commit d6bf26109da66edb4c4d4fd88a9793d3646c8c68
Author: Milan Crha <mcrha redhat com>
Date: Thu Aug 20 13:23:00 2015 +0200
Bug 753764 - Can't move recurring 24h calendar entries back one day
calendar/gui/e-cal-data-model.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/e-cal-data-model.c b/calendar/gui/e-cal-data-model.c
index c33a4eb..9618c1c 100644
--- a/calendar/gui/e-cal-data-model.c
+++ b/calendar/gui/e-cal-data-model.c
@@ -1028,10 +1028,18 @@ cal_data_model_instance_generated (ECalComponent *comp,
tt = icalcomponent_get_dtstart (e_cal_component_get_icalcomponent (comp_copy));
tt2 = icaltime_from_timet_with_zone (instance_start, tt.is_date, gid->zone);
+ if (tt.is_date || !tt.zone || tt.zone == icaltimezone_get_utc_timezone ())
+ tt2.zone = NULL;
+ else
+ tt2.zone = gid->zone;
icalcomponent_set_dtstart (e_cal_component_get_icalcomponent (comp_copy), tt2);
tt = icalcomponent_get_dtend (e_cal_component_get_icalcomponent (comp_copy));
tt2 = icaltime_from_timet_with_zone (instance_end, tt.is_date, gid->zone);
+ if (tt.is_date || !tt.zone || tt.zone == icaltimezone_get_utc_timezone ())
+ tt2.zone = NULL;
+ else
+ tt2.zone = gid->zone;
icalcomponent_set_dtend (e_cal_component_get_icalcomponent (comp_copy), tt2);
e_cal_component_rescan (comp_copy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]