go-webdav/caldav
Conrad Hoffmann 5b5b542f2f caldav: fix match on open time ranges
Matches on open time ranges (i.e. no end date) were not properly
handled, as `end` is simply the zero time, which confuses the
`.Before()` and `.After()` logic employed here.

This commit fixes that by adding the appropriate `.IsZero()` checks and
also adds a test case.

The current behavior unfortunately broke compatibility with DAVx5, which
by default queries only events less than 90 days ago (by using an open
time range).
2024-02-01 14:36:51 +01:00
..
caldav.go Support setting capabilities in ServePrincipal() 2022-12-13 15:46:51 +01:00
client.go caldav: add DiscoverContextURL 2023-12-27 23:16:49 +01:00
elements.go Support custom user principal and home set paths 2022-05-11 11:12:04 +02:00
match_test.go caldav: fix match on open time ranges 2024-02-01 14:36:51 +01:00
match.go caldav: fix match on open time ranges 2024-02-01 14:36:51 +01:00
server_test.go caldav: add multi-calendar support 2023-08-21 13:06:59 +02:00
server.go caldav: add multi-calendar support 2023-08-21 13:06:59 +02:00