From 35af27f209a7426baf8d0793b118b7432d0d15fe Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 10 Feb 2024 21:37:59 -0800 Subject: [PATCH] Update ical.jsx --- src/widgets/calendar/integrations/ical.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/widgets/calendar/integrations/ical.jsx b/src/widgets/calendar/integrations/ical.jsx index 05d059c72..059adfa2e 100644 --- a/src/widgets/calendar/integrations/ical.jsx +++ b/src/widgets/calendar/integrations/ical.jsx @@ -54,9 +54,7 @@ export default function Integration({ config, params, setEvents, hideErrors, tim const eventToAdd = (date, i, type) => { // 'dtend' is null for all-day events const { dtstart, dtend = { value: 0 } } = event; - const days = dtend.value === 0 ? 1 : (dtend.value - dtstart.value) / (1000 * 60 * 60 * 24); - const eventDate = timezone ? DateTime.fromJSDate(date, { zone: timezone }) : DateTime.fromJSDate(date); for (let j = 0; j < days; j += 1) {