mark events that last more than 1 full day as all day events

This commit is contained in:
basti76
2018-09-20 19:32:59 +02:00
parent 1840021ed1
commit 989eda748f

View File

@ -118,7 +118,7 @@ module.exports = function (RED) {
organizer: e.organizer || '',
uid: e.uid || '',
isRecurring: false,
allDay: (e.duration.toSeconds() === 86400)
allDay: ((e.duration.toSeconds() % 86400) === 0)
}
}
}