question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Allow setting the 24 hour format instead follow user locale

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
henninghallcommented, Aug 22, 2020

Fixed by adding the prop is24hourSource in v3.2.0

0reactions
henninghallcommented, Aug 3, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found