From 989eda748fbeaf4779c044ec8ec0dc6289119e63 Mon Sep 17 00:00:00 2001 From: basti76 Date: Thu, 20 Sep 2018 19:32:59 +0200 Subject: [PATCH] mark events that last more than 1 full day as all day events --- nextcloud.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud.js b/nextcloud.js index 90efb26..c738453 100644 --- a/nextcloud.js +++ b/nextcloud.js @@ -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) } } }