events: fix multi-date events

This commit is contained in:
tree🌴 2024-02-21 16:45:17 +01:00
parent 09bf3e4b28
commit 3a9ebe6816

View file

@ -73,7 +73,7 @@ function ccRenderer (item) {
} }
function dateEnd(str, days) { function dateEnd(str, days) {
return format(addDays(new Date(str), days), 'yyyy-MM-dd'); return format(addDays(new Date(str), days-1), 'yyyy-MM-dd');
} }
const statuses = { const statuses = {