Skip to content

Param format='time' is unpassable: UI time picker omits seconds but jsonschema FormatChecker requires HH:MM:SS#66506

Closed
csrinivas2130 wants to merge 11 commits intoapache:mainfrom
csrinivas2130:fix/param-time-format-seconds-66492
Closed

Param format='time' is unpassable: UI time picker omits seconds but jsonschema FormatChecker requires HH:MM:SS#66506
csrinivas2130 wants to merge 11 commits intoapache:mainfrom
csrinivas2130:fix/param-time-format-seconds-66492

Conversation

@csrinivas2130
Copy link
Copy Markdown

Fixes #66492

This fixes the issue Param format='time' is unpassable: UI time picker omits seconds but jsonschema FormatChecker requires HH:MM:SS #66492

What changed
FieldDateTime.tsx - edited (3 lines changed)

step={1} added for type="time" → browser shows the full HH:MM:SS picker
onChange pads HH:MM → HH:MM:SS for any value without seconds
value slice uses 8 chars for time, keeps 16 for everything else

FieldDateTime.test.tsx — new file created with 6 tests covering every case.

Local validation:
pnpm test FieldDateTime
pnpm lint
prek run --from-ref main --stage pre-commit
prek run --from-ref main --stage manual
all above 4 passed

Behavior impact
This does not change successful cleanup behavior.
This fix closes the issue #66492

Was generative AI tooling used to co-author this PR?

Yes — Claude Sonnet 4.6
Generated-by: Claude Sonnet 4.6 following the guidelines

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label May 7, 2026
@csrinivas2130 csrinivas2130 closed this by deleting the head repository May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Param format='time' is unpassable: UI time picker omits seconds but jsonschema FormatChecker requires HH:MM:SS

2 participants