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
2023-12-27 23:16:49 +01:00
2020-04-02 16:50:41 +02:00
2017-08-26 14:46:44 +02:00
2024-01-18 13:28:50 +01:00
2024-01-18 13:28:50 +01:00
2023-09-10 14:52:02 +09:00
2023-09-10 14:52:02 +09:00
2020-01-14 17:51:33 +01:00
2024-01-18 13:28:50 +01:00

go-webdav

Go Reference builds.sr.ht status

A Go library for WebDAV, CalDAV and CardDAV.

License

MIT

Description
A Go library for WebDAV, CalDAV and CardDAV
Readme MIT 612 KiB
Languages
Go 100%