mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-12 20:27:39 +02:00
Fix calendar appointment positions coming in utc
This commit is contained in:
@@ -45,7 +45,9 @@ function timeToMinutes(time: string): number {
|
||||
if (time.includes("T")) {
|
||||
const parsedDate = new Date(time);
|
||||
if (!Number.isNaN(parsedDate.getTime())) {
|
||||
return parsedDate.getHours() * 60 + parsedDate.getMinutes();
|
||||
return (
|
||||
parsedDate.getHours() * 60 + parsedDate.getMinutes() + parsedDate.getTimezoneOffset() + 60
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user