I#1717 - ECalModel: Properly show also UTC times

Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1717
This commit is contained in:
Milan Crha
2021-11-26 10:56:39 +01:00
parent e2b64680ef
commit ae0df0c507

View File

@ -4385,6 +4385,9 @@ e_cal_model_util_get_datetime_value (ECalModel *model,
if (!tzid || !*tzid || if (!tzid || !*tzid ||
!e_cal_client_get_timezone_sync (comp_data->client, tzid, &zone, NULL, NULL)) !e_cal_client_get_timezone_sync (comp_data->client, tzid, &zone, NULL, NULL))
zone = 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)) { if (e_cal_data_model_get_expand_recurrences (model->priv->data_model)) {