for date based events use the date part only
This commit is contained in:
parent
8ba0bae716
commit
c6300bd68f
|
@ -86,8 +86,8 @@ app.post('/merge', async (req, res) => {
|
||||||
} else {
|
} else {
|
||||||
// Date-based event
|
// Date-based event
|
||||||
calendar.createEvent({
|
calendar.createEvent({
|
||||||
start: start,
|
start: start.toISOString().split('T')[0], // Use only the date part
|
||||||
end: end,
|
end: end.toISOString().split('T')[0], // Use only the date part
|
||||||
summary: summary,
|
summary: summary,
|
||||||
allDay: true, // Mark as an all-day event
|
allDay: true, // Mark as an all-day event
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue