mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 17:15:34 -08:00
Fix: calendar timezone performance improvements (#2668)
This commit is contained in:
@@ -39,7 +39,4 @@ export default function Event({ event, colorVariants, showDate = false, showTime
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function compareDateTimezoneAware(date, event) {
|
||||
return date.setZone(event.date.zoneName).startOf("day").valueOf() === event.date.startOf("day").valueOf();
|
||||
}
|
||||
export const compareDateTimezone = (date, event) => date.startOf("day").ts === event.date.startOf("day").ts;
|
||||
|
||||
Reference in New Issue
Block a user