[evolution-ews/gnome-42] I#191 - Calendar: Fix occurrence index counter



commit 79f3cfc8c7045d5381a7d7144b7ff971ff927ce5
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jul 11 12:56:18 2022 +0200

    I#191 - Calendar: Fix occurrence index counter
    
    Closes https://gitlab.gnome.org/GNOME/evolution-ews/-/issues/191

 src/EWS/calendar/e-cal-backend-ews-utils.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/EWS/calendar/e-cal-backend-ews-utils.c b/src/EWS/calendar/e-cal-backend-ews-utils.c
index 2e904223..d736311c 100644
--- a/src/EWS/calendar/e-cal-backend-ews-utils.c
+++ b/src/EWS/calendar/e-cal-backend-ews-utils.c
@@ -2093,7 +2093,8 @@ e_cal_backend_ews_rid_to_index (ICalTimezone *timezone,
        for (next = i_cal_recur_iterator_next (ritr);
             next && !i_cal_time_is_null_time (next);
             g_object_unref (next), next = i_cal_recur_iterator_next (ritr), index++) {
-               if (i_cal_time_compare_date_only (o_time, next) == 0) {
+               /* Make sure the date is compared with the expected timezone, not converted into UTC */
+               if (i_cal_time_compare_date_only_tz (o_time, next, timezone) == 0) {
                        break;
                }
        }


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