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

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
pull/4643/head^2
Randall Hand 2 weeks ago committed by GitHub
parent 0615799c6c
commit 2a95f88cdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -39,4 +39,5 @@ export default function Event({ event, colorVariants, showDate = false, showTime
</div> </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();

Loading…
Cancel
Save