[gnome-calendar/gnome-3-36] calendar-monitor: Use inclusive end date for ECalClientView
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-36] calendar-monitor: Use inclusive end date for ECalClientView
- Date: Thu, 16 Apr 2020 19:58:13 +0000 (UTC)
commit 7d585d16a850b2a62a95d978f09fbc38b777468b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Apr 16 16:31:36 2020 -0300
calendar-monitor: Use inclusive end date for ECalClientView
May prevent a few events from being transmitted.
src/core/gcal-calendar-monitor.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/core/gcal-calendar-monitor.c b/src/core/gcal-calendar-monitor.c
index 2699cdca..6b409fc9 100644
--- a/src/core/gcal-calendar-monitor.c
+++ b/src/core/gcal-calendar-monitor.c
@@ -116,6 +116,7 @@ static gchar*
build_subscriber_filter (GcalRange *range,
const gchar *filter)
{
+ g_autoptr (GDateTime) inclusive_range_end = NULL;
g_autoptr (GDateTime) utc_range_start = NULL;
g_autoptr (GDateTime) utc_range_end = NULL;
g_autoptr (GDateTime) range_start = NULL;
@@ -134,7 +135,8 @@ build_subscriber_filter (GcalRange *range,
start_str = g_date_time_format (utc_range_start, "%Y%m%dT%H%M%SZ");
range_end = gcal_range_get_end (range);
- utc_range_end = g_date_time_to_utc (range_end);
+ inclusive_range_end = g_date_time_add_seconds (range_end, -1);
+ utc_range_end = g_date_time_to_utc (inclusive_range_end);
end_str = g_date_time_format (utc_range_end, "%Y%m%dT%H%M%SZ");
if (filter)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]