[#425] Event title modification of all day event alter event dates (#431)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-12-18 09:09:02 +01:00
committed by GitHub
parent 403517e827
commit 90d6058b0f
4 changed files with 10 additions and 11 deletions
+1
View File
@@ -247,6 +247,7 @@ function EventUpdateModal({
if (isAllDay) {
// For all-day events, use date format (YYYY-MM-DD)
const endDate = new Date(event.end);
endDate.setDate(endDate.getDate() - 1);
setEnd(endDate.toISOString().split("T")[0]);
} else {
// For timed events, format in the event's original timezone