You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes the following situation:
- Upload a valid contest either via UI or API.
- Shadow the contest and receive a valid CLICS start_time update
- In the UI we would validate the contest and consider the contest invalid.
In the contest validation we only considered the DateTime format with timezones and not offsets
- The UI for rejudgings is now also locked as we validate the contest on multiple pages.
To make this easier to read the regex is now also extracted to separate variables. That
way it was easier to verify that our relative times are escaped correctly (+ is special for regex).
Also added some smaller parts:
- The `+` seems optional for relative times
See the CLICS spec: https://github.com/icpc/ccs-specs/blame/master/Contest_API.md#L235.
- Allow also only 1 subsecond for absolute positive URLs
- We now also allow:
yyyy-mm-ddThh:mm:ss(.uuu)?[+-]zz(:mm)?
besides (T instead of space between date & time)
yyyy-mm-dd hh:mm:ss(.uuu)?[+-]zz(:mm)?
See: https://github.com/icpc/ccs-specs/blame/master/Contest_API.md#L233
- Allow for the Z shorthand for UTC
- Disallow different offsets in the contest times. CLICS allows for this but we can fix this
if there is ever a real usecase for it. We already did this for timezones.
0 commit comments