From c6300bd68f3b738e9d814f5ab25ccd659e62a206 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Tue, 29 Oct 2024 15:44:49 +0300 Subject: [PATCH] for date based events use the date part only --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 66e2231..82a89d2 100644 --- a/server.js +++ b/server.js @@ -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 });