Skip to content

Commit

Permalink
enhance debug and downgrade node-ical to 0.19.0 for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Nov 1, 2024
1 parent 6e8c11a commit 93e431b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ async function processData(data, realnow, startpreview, endpreview, now2, calNam

// only events with summary and a start date are interesting
if ((ev.summary !== undefined) && (ev.type === 'VEVENT') && ev.start && ev.start instanceof Date) {
adapter.log.debug(`ev: ${JSON.stringify(ev)}`);
adapter.log.debug(`ev[${k}]: ${JSON.stringify(ev)}`);
if (!ev.end || !(ev.end instanceof Date)) {
ev.end = new Date(ev.start.getTime());
if (ev.start.getHours() === 0 && ev.start.getMinutes() === 0 && ev.start.getSeconds() === 0) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"axios": "^1.7.7",
"cloneextend": "^0.0.3",
"json-schema": "^0.4.0",
"node-ical": "^0.20.0",
"node-ical": "0.19.0",
"rrule": "2.8.1"
},
"devDependencies": {
Expand Down

0 comments on commit 93e431b

Please sign in to comment.