From ca7e563c8b2b93576c6d7e854ab37fea5c5fdb46 Mon Sep 17 00:00:00 2001 From: Pablo Ricco Date: Thu, 22 Jun 2017 01:24:47 -0300 Subject: [PATCH] Fix date for "all day" events. --- src/almanac.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/almanac.js b/src/almanac.js index faafc24..bc344b5 100755 --- a/src/almanac.js +++ b/src/almanac.js @@ -79,8 +79,8 @@ class Almanac { title: opts.calendar.title || response.summary }, location: event.location, - start: moment(event.start.dateTime).valueOf(), - end: moment(event.end.dateTime).valueOf() + start: moment(event.start.date || event.start.dateTime).valueOf(), + end: moment(event.end.date || event.end.dateTime).valueOf() }; });