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
This commit is contained in:
Felipe Anibal
2024-07-12 11:07:24 -03:00
parent 2896bd5177
commit 5ce7b210dc
+2 -2
View File
@@ -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);