[gnome-calendar] event-widget: handle timezone properly



commit 4c7a99e7bfacfd9cc593afd2019356fa2e75834f
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sun Feb 15 20:09:18 2015 -0500

    event-widget: handle timezone properly

 src/gcal-event-widget.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-event-widget.c b/src/gcal-event-widget.c
index 20e29b9..e11725c 100644
--- a/src/gcal-event-widget.c
+++ b/src/gcal-event-widget.c
@@ -728,7 +728,7 @@ gcal_event_widget_new_from_data (GcalEventData *data)
   date = gcal_dup_icaltime (dt.value);
 
   start_is_date = date->is_date == 1;
-  if (start_is_date)
+  if (!start_is_date)
     *date = icaltime_convert_to_zone (*(dt.value), e_cal_util_get_system_timezone ());
 
   gcal_event_widget_set_date (event, date);
@@ -742,7 +742,7 @@ gcal_event_widget_new_from_data (GcalEventData *data)
       date = gcal_dup_icaltime (dt.value);
 
       end_is_date = date->is_date == 1;
-      if (end_is_date)
+      if (!end_is_date)
         *date = icaltime_convert_to_zone (*(dt.value), e_cal_util_get_system_timezone ());
 
       gcal_event_widget_set_end_date (event, date);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]