Bugfix/year change (#1323)
This commit is contained in:
1 parent
e6f71c81bb
commit
a3bd226347
6 files changed
+132
-110
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user