1
0
Fork 0

for date based events use the date part only

This commit is contained in:
Ryan Mwangi 2024-10-29 15:44:49 +03:00
parent 8ba0bae716
commit c6300bd68f
1 changed files with 2 additions and 2 deletions

View File

@ -86,8 +86,8 @@ app.post('/merge', async (req, res) => {
} else {
// Date-based event
calendar.createEvent({
start: start,
end: end,
start: start.toISOString().split('T')[0], // Use only the date part
end: end.toISOString().split('T')[0], // Use only the date part
summary: summary,
allDay: true, // Mark as an all-day event
});