gnome-calendar doesn't import one day events from ics files correctly
Case 1
I downloaded public ics files like https://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics
Their entries were shown in gnome-calendar, but not in GNOME's date & time. In gnome-calendar they had an end date before the start date.
The ics files from calendarlabs don't implement the standard from https://tools.ietf.org/html/rfc5545#section-3.6.1 for VEVENTs
correctly. While the DATE
from DTSTART
is inclusive, the DATE
from DTEND
isn't. For a one day event DTEND
's DATE
has therefore to be one day after DTSTART
's date.
Some programs correct this by simply increasing DTEND
by one day in these cases and gnome-calendar should do that too. As no event can end before it starts, gnome-calendar's behavior of setting the end date before the start date doesn't make sense.
Case 2
If a VEVENT
has a DTSTART
property with a DATE
but no DURATION
and no DTEND
property, according to https://tools.ietf.org/html/rfc5545#section-3.6.1 "the event's duration is taken to be one day." I therefore deleted the DTEND
property in for instance US_Holidays.ics and expected that now gnome-calendar would import the ics file's VEVENTS
correctly. But even in this case of standard conforming ics files gnome-calendar imported them with an end date before the start date. This time without the need to correct an error, but simply the need to implement a standard correctly.
In both cases gnome-calendar shouldn't produce events with a end date before the start date.
(I'm using gnome-calendar 3.36.2 with ubuntu 20.04)