[evolution-ews/gnome-3-34] I#84 - Fails to create event with no duration



commit 1a34961f36186c7c40654f09702dd87ec5b62153
Author: Milan Crha <mcrha redhat com>
Date:   Tue Feb 4 18:00:00 2020 +0100

    I#84 - Fails to create event with no duration
    
    Closes https://gitlab.gnome.org/GNOME/evolution-ews/issues/84

 src/calendar/e-cal-backend-ews-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/calendar/e-cal-backend-ews-utils.c b/src/calendar/e-cal-backend-ews-utils.c
index f0f09eec..2bab8fd2 100644
--- a/src/calendar/e-cal-backend-ews-utils.c
+++ b/src/calendar/e-cal-backend-ews-utils.c
@@ -1137,7 +1137,7 @@ check_is_all_day_event (const ICalTime *dtstart,
        secs_end = (gint64) (zone_end ? i_cal_time_as_timet_with_zone (dtend, zone_end) : i_cal_time_as_timet 
(dtend));
 
        /* takes whole day(s) and starts on midnight in the zone_start */
-       return ((secs_end - secs_start) % (24 * 60 * 60)) == 0 && (secs_start % 24 * 60 * 60) == 0;
+       return ((secs_end - secs_start) > 0) && ((secs_end - secs_start) % (24 * 60 * 60)) == 0 && 
(secs_start % 24 * 60 * 60) == 0;
 }
 
 static gboolean


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