Timeframes need aligning to Thu-Wed week
The start and end dates for the "All" timeframe for Camb2122Allocate are reported as 2021-09-27 to 2022-09-25 by the API (i.e. Monday of first week to Sunday of last week).
Calls to the event API fail if these are used:
400 Client Error: Bad Request for url: https://ttportalcam2.com/v1/api/schedule/rooms?start=2021-09-27&days=363
In the UI, the dates are shown as 30/09/2021 to 28/09/2022 (i.e. Thursday to Wednesday). This appears to be due the customisation of our instances to have Thursday as the first day of the week (Cambridge oddity).
The sync tool needs to (optionally, possibly but default) shift the dates it gets from the API to the next Thursday and Wednesday for start and end dates, respectively, if not already on those days of the week.
In the meantime, the timeframes can be overridden by adding configuration to override the timeframes:
termtime:
timeframe: Custom
timeframes:
- c: Custom
f: 1
fDate: '2021-09-30'
l: 52
lDate: '2022-09-28'
n: "All Year - Customised"