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:
Denis Papec
2024-01-15 02:01:10 +00:00
committed by GitHub
parent 674d7f2e01
commit 1f2081af5d
5 changed files with 23 additions and 14 deletions

View File

@@ -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();
}