mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 12:18:48 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue