@@ -140,7 +140,7 @@ module.exports = NodeHelper.create({
140140 return ;
141141 }
142142
143- const wholeEvents = [ ] . concat ( events . events , events . occurrences ) ;
143+ const wholeEvents = [ ... events . events , ... events . occurrences ] ;
144144 const eventPool = [ ] ;
145145
146146 wholeEvents . forEach ( ( item ) => {
@@ -171,12 +171,8 @@ module.exports = NodeHelper.create({
171171 let startDate ;
172172 let endDate ;
173173 if ( calendar . forceLocalTZ ) {
174- const ts = item . startDate . toJSON ( ) ;
175- ts . month -= 1 ;
176- const te = item . endDate . toJSON ( ) ;
177- te . month -= 1 ;
178- startDate = moment ( ts ) ;
179- endDate = moment ( te ) ;
174+ startDate = moment ( item . startDate . toJSDate ( ) ) . subtract ( 1 , "months" ) ;
175+ endDate = moment ( item . endDate . toJSDate ( ) ) . subtract ( 1 , "months" ) ;
180176 } else {
181177 startDate = moment ( item . startDate . toJSDate ( ) ) ;
182178 endDate = moment ( item . endDate . toJSDate ( ) ) ;
@@ -204,7 +200,7 @@ module.exports = NodeHelper.create({
204200 ev . isFullday = isFullday ;
205201
206202 // import the Microsoft property X-MICROSOFT-CDO-BUSYSTATUS, fall back to "BUSY" in case none was found
207- // possible values are 'FREE'|'TENTATIVE'|'BUSY'|'OOF' acording to
203+ // possible values are 'FREE'|'TENTATIVE'|'BUSY'|'OOF' according to
208204 // https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxcical/cd68eae7-ed65-4dd3-8ea7-ad585c76c736
209205 ev . ms_busystatus =
210206 ri . component . getFirstPropertyValue ( "x-microsoft-cdo-busystatus" ) ||
0 commit comments