mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 17:15:34 -08:00
Add option to specify a timezone for events (#2623)
* Add option to specify a timezone for events * Amend message, update docs
This commit is contained in:
@@ -39,3 +39,7 @@ 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user