Commit Graph
4 Commits
Author SHA1 Message Date
Felipe Anibal 9ecb68bfc0 tests: add test for the gcal_date_time_from_icaltime function
Create file to test util functions and create a test for the
gcal_date_time_from_icaltime function. The test checks if the time
zones are correctly interpreted in the conversion of an ICalTime to a
GDateTime.
2024-11-19 18:10:02 +00:00
Felipe Anibal 3ce7575479 utils/date-time-utils: change date_time_from_icaltime to use tz offset
Getting the time zone based on the location of the event doesn't work
with virtual time zones, causing the offset to be incorrect on the
import dialog. This changes the function to adjust the time zone of the
GDateTime based on the offset from UTC, which should work for both
virtual and real timezones.

See #1243
2024-11-19 18:10:02 +00:00
Felipe Anibal f3c3ff55af tests: add event_date_check_tz
Add test to check the timezone of events.

See https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/171
2024-07-12 11:39:14 -03:00
Felipe Anibal 5ce7b210dc 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
2024-07-12 11:07:24 -03:00