From 18b88d26801e1347c17dc0291317039106f4756a Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Tue, 12 Nov 2024 22:47:13 +0300 Subject: [PATCH] test:add logging to ensure DTSTAMP is correctly added to the new event --- src/calendarUtil.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calendarUtil.js b/src/calendarUtil.js index 7b0e4a9..6ab7bfd 100644 --- a/src/calendarUtil.js +++ b/src/calendarUtil.js @@ -43,6 +43,7 @@ export function addEventsToCalendar(calendarComponent, results) { component.getAllSubcomponents('vevent').forEach((event) => { const vevent = new ICAL.Event(event); + console.log('Original vevent properties:', vevent); const newEvent = new ICAL.Component('vevent'); // Use ICAL.Time to handle dates correctly @@ -78,6 +79,7 @@ export function addEventsToCalendar(calendarComponent, results) { // Add the new event to the calendar component calendarComponent.addSubcomponent(newEvent); + console.log('New event properties:', newEvent); }); // Log the added events for debugging