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 18:52:32 -08:00
committed by GitHub
co-authored by shamoon
parent 0615799c6c
commit 2a95f88cdf
+2 -1
View File
@@ -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();