Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update time field with AM/PM #8831

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

oni-on1003
Copy link

Changes Introduced

  • Added a boolean use12HourFormat prop to the time field component (default: false).
  • padStart(): If the hour field is empty or set to '0', it automatically defaults to '01' in the 12-hour format.
  • Prevented users from entering '00' as a valid hour in 12-hour format.
  • Added a select field for AM/PM selection
  • Updated the time value format to hh:mm AM/PM when use12HourFormat is enabled

Ticket/Issue Number: #8336

@jpye-finch
Copy link
Collaborator

@oni-on1003
Could you share a screenshot or video of this component.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants