[california] Use local timezone whenever updating event time: Bug #733101



commit cca25ec1fe6f218f4fb1c7b39213802fe6bf862c
Author: Jim Nelson <jim yorba org>
Date:   Wed Jul 16 20:02:26 2014 -0700

    Use local timezone whenever updating event time: Bug #733101
    
    Google Calendar converts all times to UTC, so editing twice caused
    UTC to be used second time (although user's local wall time was being
    used).

 src/host/host-create-update-event.vala |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/host/host-create-update-event.vala b/src/host/host-create-update-event.vala
index f8a755d..3f5b9b0 100644
--- a/src/host/host-create-update-event.vala
+++ b/src/host/host-create-update-event.vala
@@ -333,15 +333,11 @@ public class CreateUpdateEvent : Gtk.Grid, Toolkit.Card {
         if (all_day_toggle.active) {
             target.set_event_date_span(selected_date_span);
         } else {
-            // use existing timezone unless not specified in original event
-            Calendar.Timezone tz = (target.exact_time_span != null)
-                ? target.exact_time_span.start_exact_time.tz
-                : Calendar.Timezone.local;
             target.set_event_exact_time_span(
                 new Calendar.ExactTimeSpan(
-                    new Calendar.ExactTime(tz, selected_date_span.start_date,
+                    new Calendar.ExactTime(Calendar.Timezone.local, selected_date_span.start_date,
                         time_map.get(dtstart_time_combo.get_active_text())),
-                    new Calendar.ExactTime(tz, selected_date_span.end_date,
+                    new Calendar.ExactTime(Calendar.Timezone.local, selected_date_span.end_date,
                         time_map.get(dtend_time_combo.get_active_text()))
                 )
             );


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