From 3a9ebe68166b026392c6fb753b2948f9780f8596 Mon Sep 17 00:00:00 2001 From: tree Date: Wed, 21 Feb 2024 16:45:17 +0100 Subject: [PATCH] events: fix multi-date events --- src/components/EventItem.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EventItem.astro b/src/components/EventItem.astro index 5c313d4..732cb65 100644 --- a/src/components/EventItem.astro +++ b/src/components/EventItem.astro @@ -73,7 +73,7 @@ function ccRenderer (item) { } 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 = {