Fix: Timezone-aware Date comparison for Calendar integration (#4742)

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Randall Hand 2025-02-11 20:52:32 -06:00 committed by GitHub
parent 0615799c6c
commit 2a95f88cdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,4 +39,5 @@ 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();