mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Fix: Timezone-aware Date comparison for Calendar integration (#4742)
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
0615799c6c
commit
2a95f88cdf
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user