fix(calendar): send dispatch from/to as Z-suffixed UTC, not +00:00 #69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/dispatch-board-timestamp-z-suffix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The dispatch board (
/dispatch) was stuck on "Could not load the dispatch board." Auth, theRequireCalendargate, and the calendar list view all work, which isolated the failure to theGET /api/v1/dispatchrequest itself.Root cause
The client built the request as
/dispatch?from={}&to={}usingto_rfc3339(), which emits a+00:00UTC offset. A literal+in a query string URL-decodes to a space on the server, so the decoded value2026-06-05T04:00:00 00:00fails chronosDateTime` parser and the handler returns 400. The identical bug was fixed for the calendar list call in the Z-suffix change (#65), but the dispatch board call was missed.Fix
Format both
fromandtowithto_rfc3339_opts(SecondsFormat::Secs, true)so they serialize as2026-06-05T04:00:00Z, matching the working calendar list request.SecondsFormatis already imported.Verification
Not built locally (Rust runs only in the dev container). Needs a client rebuild + redeploy to confirm the board loads against staging. Change is a 1:1 match to the calendar list call.