[evolution/gnome-41] I#1717 - ECalModel: Properly show also UTC times



commit ca5e2a1c56efeabd82187e69800795d76f9f5917
Author: Milan Crha <mcrha redhat com>
Date:   Fri Nov 26 10:56:39 2021 +0100

    I#1717 - ECalModel: Properly show also UTC times
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1717

 src/calendar/gui/e-cal-model.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/calendar/gui/e-cal-model.c b/src/calendar/gui/e-cal-model.c
index 21b898004e..c4b79d3a5e 100644
--- a/src/calendar/gui/e-cal-model.c
+++ b/src/calendar/gui/e-cal-model.c
@@ -4385,6 +4385,9 @@ e_cal_model_util_get_datetime_value (ECalModel *model,
                if (!tzid || !*tzid ||
                    !e_cal_client_get_timezone_sync (comp_data->client, tzid, &zone, NULL, NULL))
                        zone = NULL;
+
+               if (!zone && i_cal_time_is_utc (tt))
+                       zone = i_cal_timezone_get_utc_timezone ();
        }
 
        if (e_cal_data_model_get_expand_recurrences (model->priv->data_model)) {


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