Skip to content

utils/date-time-utils: use UTC offset on date_time_from_icaltime and add tests

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 date_time_from_icaltime function to adjust the time zone of the GDateTime based on the offset from UTC, which should work for both virtual and real timezones.

In this merge, we also add a test for the function to make sure that the time zones are correctly interpreted in the conversion of an ICalTime to a GDateTime.

See #1243 (closed) (this merge refers to the second part of the issue, which concerns the incorrect offset in the import dialog).

Merge request reports

Loading