I'm trying to setup resource calenders for complex recurring shifts. E.g. a 14 day shift should set a calendar's working hours to:
day 1: 8hrs
day 2: 8hrs
day 3: 8hrs
day 4: 8hrs
day 5: 0hrs
day 6: 0hrs
day 7: 8hrs
day 8: 8hrs
day 9: 8hrs
day 10: 8hrs
day 11: 8hrs
day 12: 0hrs
day 13: 0hrs
day 14: 0hrs
This will be recurring (every 14 days), starting on a specific date, e.g. Monday July 18th 2022. By setting recurring isWorking=true intervals like "on Monday at 08:00" for 14 days, the first week is overwritten. I can't figure out yet how to do this. Any help would be appreciated, thanks!
Thanks for your reply, that's getting close to what I want. But I'd like the recurrence to be fully custom. Shifts can e.g. also be a 10 day recurring schedule. I'm reading the later.js doc about custom time periods, but how can I create that? E.g. custom period is 10 days. Then use this to implement a recurring schedule like: on the 1st day of custom period, 8hrs working (with recurring start and end date/time). And on the 2nd day of custom period, 8hrs working and so on...
Is something like that possible?
"recurrentStartDate" : "every 14 days at 6:00 after 2021-03-30T00:00:00 before 2021-04-15T00:00:00",
"recurrentEndDate" : "every 14 days at 22:00 after 2021-03-30T00:00:00 before 2021-04-15T00:00:00",
No problem. Just one thing. On weeks and months, the first day (e.g. "first day of the week") is always Sunday. European calendar says the first day is Monday. Can I change that somewhere?