[evolution] Bug 786163 - [ECalModel] Do not convert UTC times to local time zone
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 786163 - [ECalModel] Do not convert UTC times to local time zone
- Date: Wed, 23 Aug 2017 12:11:28 +0000 (UTC)
commit 7a3abddc2f0b12916a607da27cbd6817f28de737
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 23 14:11:12 2017 +0200
Bug 786163 - [ECalModel] Do not convert UTC times to local time zone
src/calendar/gui/e-cal-model.c | 27 ---------------------------
1 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/src/calendar/gui/e-cal-model.c b/src/calendar/gui/e-cal-model.c
index f6af805..d807495 100644
--- a/src/calendar/gui/e-cal-model.c
+++ b/src/calendar/gui/e-cal-model.c
@@ -1943,32 +1943,6 @@ e_cal_model_get_component_index (ECalModel *model,
return -1;
}
-/* We do this check since the calendar items are downloaded from the server
- * in the open_method, since the default timezone might not be set there. */
-static void
-ensure_dates_are_in_default_zone (ECalModel *model,
- icalcomponent *icalcomp)
-{
- icaltimetype dt;
- icaltimezone *zone;
-
- zone = e_cal_model_get_timezone (model);
- if (!zone)
- return;
-
- dt = icalcomponent_get_dtstart (icalcomp);
- if (dt.is_utc) {
- dt = icaltime_convert_to_zone (dt, zone);
- icalcomponent_set_dtstart (icalcomp, dt);
- }
-
- dt = icalcomponent_get_dtend (icalcomp);
- if (dt.is_utc) {
- dt = icaltime_convert_to_zone (dt, zone);
- icalcomponent_set_dtend (icalcomp, dt);
- }
-}
-
static void
cal_model_data_subscriber_component_added_or_modified (ECalDataModelSubscriber *subscriber,
ECalClient *client,
@@ -1995,7 +1969,6 @@ cal_model_data_subscriber_component_added_or_modified (ECalDataModelSubscriber *
table_model = E_TABLE_MODEL (model);
icalcomp = icalcomponent_new_clone (e_cal_component_get_icalcomponent (comp));
- ensure_dates_are_in_default_zone (model, icalcomp);
if (index < 0) {
e_table_model_pre_change (table_model);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]