[evolution-ews/gnome-3-36] evo-I#831 - Free/Busy times are not in UTC



commit 91f8f37b1595620432f015e1f6cee8b4f0974ab2
Author: Milan Crha <mcrha redhat com>
Date:   Thu Mar 12 10:02:56 2020 +0100

    evo-I#831 - Free/Busy times are not in UTC
    
    Related to https://gitlab.gnome.org/GNOME/evolution/issues/831

 src/server/e-ews-connection.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index cd4eaa8b..127b436f 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -8378,6 +8378,7 @@ ews_handle_free_busy_view (ESoapParameter *param,
        http://msdn.microsoft.com / en - us / library / aa564001 % 28v = EXCHG.140 % 29.aspx */
        ICalComponent *vfb;
        ICalProperty *prop = NULL;
+       ICalTimezone *utc_zone = i_cal_timezone_get_utc_timezone ();
        ESoapParameter *viewparam, *eventarray, *event_param, *subparam;
        GTimeVal t_val;
        const gchar *name;
@@ -8417,7 +8418,7 @@ ews_handle_free_busy_view (ESoapParameter *param,
                                g_time_val_from_iso8601 (new_val, &t_val);
                                g_free (new_val);
 
-                               itt = i_cal_time_new_from_timet_with_zone (t_val.tv_sec, 0, NULL);
+                               itt = i_cal_time_new_from_timet_with_zone (t_val.tv_sec, 0, utc_zone);
                                i_cal_period_set_start (ipt, itt);
                                g_clear_object (&itt);
 
@@ -8440,7 +8441,7 @@ ews_handle_free_busy_view (ESoapParameter *param,
                                g_time_val_from_iso8601 (new_val, &t_val);
                                g_free (new_val);
 
-                               itt = i_cal_time_new_from_timet_with_zone (t_val.tv_sec, 0, NULL);
+                               itt = i_cal_time_new_from_timet_with_zone (t_val.tv_sec, 0, utc_zone);
                                i_cal_period_set_end (ipt, itt);
                                g_clear_object (&itt);
 


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