forked from ryanmwangi/CalMerger
for date based events use the date part only in the /calendar/:name endpoint
This commit is contained in:
parent
c6300bd68f
commit
a77279273a
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue