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

Can't see AM/PM option. #121

Closed
osamabinsaleem opened this issue Jun 30, 2021 · 4 comments
Closed

Can't see AM/PM option. #121

osamabinsaleem opened this issue Jun 30, 2021 · 4 comments
Labels
question Further information is requested stale

Comments

@osamabinsaleem
Copy link

osamabinsaleem commented Jun 30, 2021

version : 4.3.0
locale: default

@rohitmpatil-iprogrammer
Copy link

rohitmpatil-iprogrammer commented Jun 30, 2021

version : 4.3.0
locale: default

Try passing format="h:m:s a"

@bastian-hidalgo
Copy link

bastian-hidalgo commented Jul 1, 2021

@osamabinsaleem I was having the same issue, if you're using moment like me, my approach is this:

<TimePicker
    disableClock
    format="h:mm a"
    clearIcon={null}
    value={timeState}
    onChange={handleNewTime}
    disabled={disabled}
  />

MomentJS normalizer:

export const normalizeTime = (time) => moment.utc(time).format('HH:mm');

@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2021

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

@github-actions github-actions bot added the stale label Oct 4, 2021
@just-be-weird
Copy link

just-be-weird commented Oct 8, 2021

version : 4.3.0
locale: default

Try passing format="hⓂ️s a"

This worked for me, Thanks!

@wojtekmaj wojtekmaj added the question Further information is requested label Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

5 participants