diff --git a/server.js b/server.js index 82a89d2..9f5857e 100644 --- a/server.js +++ b/server.js @@ -172,8 +172,8 @@ app.get('/calendar/:name', 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 });