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
{{ message }}
Repository navigation
Admin: clearing an optional datetime field saves "", which fails validation ("Invalid input") #4424
Steps: In the content editor, type a value into an optional datetime field, clear it, then save.
Result: The request sends "field": "". The server validator (zod-generator.ts: z.iso.datetime(...) with .nullish()) rejects it with a VALIDATION_ERROR invalid_union, so the entry can't be saved until the field holds a date again.
Cause:fromDatetimeLocalInputValue in the admin returns "" for an empty input.
Suggested fix: return null when the field isn't required, or have the server treat "" as null for optional datetime fields.
The fix is ready in PR #4425, and the required checks have passed. Clearing an optional datetime now saves null, including in repeater sub-fields. Could you confirm that this resolves your original steps when you try the fix?
Activity
emdash-autofix commentedon Oct 26, 2026
The EmDash bot's work on this issue continues in #4425.
emdash-autofix commentedon Oct 26, 2026
The fix is ready in PR #4425, and the required checks have passed. Clearing an optional datetime now saves
null, including in repeater sub-fields. Could you confirm that this resolves your original steps when you try the fix?