Page Settings: datetime field from disk fails validation until re-entered #133
Labels
No labels
bug
enhancement
needs-triage
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/deckle#133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Found while verifying #130 with a real browser against
harness serve(not caused by #130 — the datetime field predates it).Repro:
date = 2026-07-10T09:00:00Zin front matter (TOML, as the scaffold writes it).harness serve, open the item's Page Settings in the editor.07/10/2026, 11:00:00 AMin a UTC+2 browser).2026-07-10T11:00) → save succeeds and writesdate = "2026-07-10T11:00:00+02:00".So a page whose date came from disk (hand-authored, or authored in another timezone?) cannot be saved from Page Settings until the author re-enters the date. Suspect the round-trip into the
datetime-localinput (seconds component and/or timezone conversion) produces a value the client-side datetime validation rejects.Observed on branch afk/130 (engine state = main + #128/#129).
Closing as a duplicate of #151, which now carries the fix as a full brief.
Triage reproduced this on
main. The cause is on the server, not in thedatetime-localround trip this report suspected. The settings read stringifies front-matter values withcast.ToStringE, so a native TOML datetime (date = 2026-07-10T09:00:00Z) reaches the form as Go's2026-07-10 09:00:00 +0000 UTC, which isn't RFC3339. The browser's check rejects it, and so would the server's.It is wider than TOML datetimes with an offset. Local TOML datetimes, date-only values (TOML, YAML, JSON) and YAML's
2026-07-10 09:00:00are blocked the same way. #151 routes the settings read throughcontent.DateRFC3339, the conversion the page tree and the module entries already use, and its PR links back here. Every other datetime read (element params, sidecar defaults) is #158.