Skip to content

Commit

Permalink
BugFix - Timezone-aware Date comparison for Calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeraze committed Feb 11, 2025
1 parent 0615799 commit c328e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/calendar/event.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ export default function Event({ event, colorVariants, showDate = false, showTime
</div>
);
}
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();

0 comments on commit c328e6c

Please sign in to comment.