Skip to content

Commit

Permalink
Update ical.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Feb 11, 2024
1 parent 1c529c0 commit 35af27f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/widgets/calendar/integrations/ical.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 35af27f

Please sign in to comment.