mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 22:28:48 +00:00
Update ical.jsx
This commit is contained in:
parent
1c529c0e7d
commit
35af27f209
1 changed files with 0 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue