From 5ce7b210dce80de17f1802fb1ccbaee261935cf3 Mon Sep 17 00:00:00 2001 From: Felipe Anibal Date: Fri, 12 Jul 2024 11:07:24 -0300 Subject: [PATCH] event: correctly interpret floating time events When dealing with floating time events the timezone used was UTC, but according to RFC5545 when the timezone is not specified the local timezone should be used. Fixes #171 --- src/core/gcal-event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gcal-event.c b/src/core/gcal-event.c index 9a1f7a7d..09c90b4e 100644 --- a/src/core/gcal-event.c +++ b/src/core/gcal-event.c @@ -201,11 +201,11 @@ get_timezone_from_ical (GcalEvent *self, } /* - * If tz is NULL, the timezone identifier is invalid. Fallback to UTC + * If tz is NULL, the timezone identifier is invalid. Fallback to the local timezone * in this case. */ if (!tz) - tz = g_time_zone_new_utc (); + tz = g_time_zone_new_local (); GCAL_TRACE_MSG ("%s (%p)", g_time_zone_get_identifier (tz), tz);