[Android] Allow setting the 24 hour format instead follow user locale
See original GitHub issueI am really grateful this date picker has the consistent UI and behavior across the ios and android platform and this is what I need for my project. Really appreciate the effort and hard work of doing this. 😄
Understand that for the android platform, the 24 format is following the user locale setting set in the phone. Is it possible to override user locale setting by adding a prop called is24Format
?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Formatting time on Android, while following preferences (24 hr ...
While this code honors my timezone and locale settings, it ignores the '24 hour mode' setting in system preferences, always returning time in...
Read more >How to Switch to a 24-Hour Clock on Android - groovyPost
Just go back to Settings > System > Date & time and toggle off the “Use 24-hour format” button to the off position....
Read more >Language and locale resolution overview - Android Developers
Starting with Android 7.0 (API level 24), Android exposes the LocaleList.getDefault() API that lets apps directly query the list of languages a ...
Read more >Time Format and Date Format Settings Separated out of Locale
Right now, the only way to adjust users to a 24-hour clock time format, as opposed to AM/PM, is by changing the Locale...
Read more >Android P adds automatic setting for 24-hour time format
A new setting showed up in Android P (we can trace it back to DP3, but it might have been added earlier) under...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed by adding the prop
is24hourSource
inv3.2.0
Then I’ll start adding that feature, and add a “force24h” prop later on if someone finds a situation were it is really no way around it.