ThreeTen is ignoring Android 24/12 hour display settings
See original GitHub issueWhen trying to print ZoneDateTime
time using DateTimeFormatter
, the user system settings regarding 24/12 hour display is ignored
The issue is if you use:
DateTimeFormatter timeFormat = DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT);
The time format will only consider the Locale and not the user settings, example: DE Locale will display a 24Hours format: 23:30 EN Locale will display a 12Hours format: 11:30 PM Regardless of the user system settings.
android.text.DateFormat.getTimeFormat(Context context) will take the system settings in consideration but only accepts Date objects, the conversion isn’t straight forward and might lead to mistakes.
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
C317X Indoor Monitor by AKUVOX XIAMEN NETWORKS
Get details about AKUVOX (XIAMEN) NETWORKS CO., LTD.'s FCC application (2AHCR-C317X) for Indoor Monitor, frequency information, user manuals, and more.
Read more >Untitled
Good night quotes for little sister, Wrangler unlimited interior, 100 mag 30 mai, Wallpapers for android christmas? Miley look at you lyrics, Ca...
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
I think we might have to just provide
AndroidDateTimeFormatter
in the library.See: https://github.com/JakeWharton/ThreeTenABP/pull/103#issuecomment-498429319