mirror of
https://github.com/gethomepage/homepage.git
synced 2026-04-08 03:01:19 -07:00
BugFix - Timezone-aware Date comparison for Calendar
This commit is contained in:
@@ -39,4 +39,4 @@ 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();
|
||||
|
||||
Reference in New Issue
Block a user