calendar all day fix

This commit is contained in:
Yuri Kuznetsov
2024-05-20 11:41:31 +03:00
parent fc93a3d029
commit edc9d00be3
@@ -624,8 +624,8 @@ class CalendarView extends View {
if (this.allDayScopeList.includes(event.scope)) {
event.allDay = event.allDayCopy = true;
if (!notInitial && end) {
start = end;
if (/*!notInitial &&*/ end) {
start = end.clone();
if (
!event.dateEndDate &&
@@ -636,6 +636,10 @@ class CalendarView extends View {
}
}
if (start.isSame(end)) {
end.add(1, 'days');
}
if (start) {
event.start = start.toDate();
}