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;
|
||||
|
||||
if (isAllDay) {
|
||||
finalStartDate = new Date(startDate);
|
||||
finalStartDate.setHours(0, 0, 0, 0);
|
||||
|
||||
finalEndDate = new Date(startDate);
|
||||
finalEndDate.setHours(23, 59, 59, 999);
|
||||
finalStartDate = new Date(startDate.setHours(0, 0, 0, 0));
|
||||
finalEndDate = new Date(startDate.setHours(0, 0, 0, 0));
|
||||
} else {
|
||||
finalStartDate = combineDateAndTime(startDate, startTime);
|
||||
finalEndDate = combineDateAndTime(endDate, endTime);
|
||||
|
||||
Reference in New Issue
Block a user