diff --git a/src/widgets/calendar/event.jsx b/src/widgets/calendar/event.jsx index 91b40e82c15..9c1107330fa 100644 --- a/src/widgets/calendar/event.jsx +++ b/src/widgets/calendar/event.jsx @@ -39,4 +39,4 @@ export default function Event({ event, colorVariants, showDate = false, showTime ); } -export const compareDateTimezone = (date, event) => date.startOf("day").ts === event.date.startOf("day").ts; +export const compareDateTimezone = (date, event) => date.startOf("day").toISODate() === event.date.startOf("day").toISODate();