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 = {