Skip to content

Commit

Permalink
Adapt to Personio API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lyind committed Sep 16, 2024
1 parent 8176218 commit 94b6535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync-timeoffs/SyncTimeOffs.js
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ function convertOutOfOfficeToTimeOff_(timeOffTypeConfig, employee, event, existi
return undefined;
}

const halfDaysAllowed = !!timeOffType.attributes?.half_day_requests_enabled;
const halfDaysAllowed = true; // field removed from absence-types from Sep. 16
const localTzOffsetStart = event.start.date ? Util.getNamedTimeZoneOffset(event.start.timeZone, new Date(event.start.date)) : undefined;
const localTzOffsetEnd = event.end.date ? Util.getNamedTimeZoneOffset(event.end.timeZone, new Date(event.end.date)) : undefined;
const startAt = PeopleTime.fromISO8601(event.start.dateTime || event.start.date, undefined, localTzOffsetStart)
Expand Down

0 comments on commit 94b6535

Please sign in to comment.