Bugfix/year change (#1323)

This commit is contained in:
Alex van Andel authored and GitHub committed 2021-12-16 15:20:38 +00:00
1 parent e6f71c81bb
commit a3bd226347
6 files changed
+132 -110

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ export function getWorkingHours(
];
}
const utcOffset = relativeTimeUnit.utcOffset || dayjs().tz(relativeTimeUnit.timeZone).utcOffset();
const utcOffset = relativeTimeUnit.utcOffset ?? dayjs().tz(relativeTimeUnit.timeZone).utcOffset();
const workingHours = availability.reduce((workingHours: WorkingHours[], schedule) => {
// Get times localised to the given utcOffset/timeZone