tobixen / calendar-cli

Simple command-line CalDav client, for adding and browsing calendar items, todo list items
GNU General Public License v3.0
247 stars 23 forks source link

Full-day events mangled on davmail #108

Open fauxmight opened 1 year ago

fauxmight commented 1 year ago

Noted when using davmail as a backend. May apply to other servers.

When adding a full-day event with this syntax 2023-09-07+1d the server does not interpret the request as a full-day event and instead adds a 24-hour event with a timestamp that starts at the last second of the PREVIOUS day.

It does not appear that calendar-cli has any other syntax for adding a full-day event (though I believe plann does). If I am misreading, please let me know.

tobixen commented 1 year ago

I think that at some point someone added a --whole-day option

fauxmight commented 1 year ago

The if clause in calendar-cli sees a whole-day event whether the --whole-day option is passed OR the total duration is a multiple of 24 hours.

An event with a +1d time span (whether or not --whole-day is passed at the command line) sent to davmail produces a 24-hour-long event rather than a whole day event.

Other caldav clients can correctly generate a whole-day event in davmail.

EDIT: Thank you for the heads-up, @tobixen. I did miss the fact that the --whole-day option exists. Unfortunately, it does not change the outcome.