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.

ThreeTen is ignoring Android 24/12 hour display settings

See original GitHub issue

When 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:closed
  • Created 8 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
JakeWhartoncommented, Nov 11, 2015

I think we might have to just provide AndroidDateTimeFormatter in the library.

Read more comments on GitHub >

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

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