mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 08:24:55 +00:00
fix all day events
This commit is contained in:
@ -104,11 +104,8 @@ export const ManuallyAddEventModal = ({
|
|||||||
let finalEndDate: Date;
|
let finalEndDate: Date;
|
||||||
|
|
||||||
if (isAllDay) {
|
if (isAllDay) {
|
||||||
finalStartDate = new Date(startDate);
|
finalStartDate = new Date(startDate.setHours(0, 0, 0, 0));
|
||||||
finalStartDate.setHours(0, 0, 0, 0);
|
finalEndDate = new Date(startDate.setHours(0, 0, 0, 0));
|
||||||
|
|
||||||
finalEndDate = new Date(startDate);
|
|
||||||
finalEndDate.setHours(23, 59, 59, 999);
|
|
||||||
} else {
|
} else {
|
||||||
finalStartDate = combineDateAndTime(startDate, startTime);
|
finalStartDate = combineDateAndTime(startDate, startTime);
|
||||||
finalEndDate = combineDateAndTime(endDate, endTime);
|
finalEndDate = combineDateAndTime(endDate, endTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user