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
The iOS 14 time picker presents both the 24 hours wheel and the AM/PM selector, when using locale="en-US" while the phone locale is "en-GB".
Code sample
<DateTimePicker
style={style}
value={date}
mode="time"
// trick to get the AM / PM button, even if the locale is "en-GB"
locale="en-US"
display="inline"
onChange={(event, date) => action(date?.toTimeString())}
/>
Summary
The iOS 14 time picker presents both the 24 hours wheel and the AM/PM selector, when using locale="en-US" while the phone locale is "en-GB".
Code sample
Specs
Packages
Device
Question
Does someone has encountered the same issue?
How can I get the time picker to be in 12 hours format with the AM/PM option?
Thank you so much for your help
The text was updated successfully, but these errors were encountered: