Tusky icon indicating copy to clipboard operation
Tusky copied to clipboard

Improve absolute time format with localized pattern.

Open babogoos opened this issue 2 years ago • 0 comments

Target

See Issue #2956.

This pull request do the things as following

  • Show the best localized time pattern when using absolute time.
  • Use android system setting to show 12/24 hour format.
  • Add 12 hour format unit test.

Something to consider/discuss:

DateFormat.is24HourFormat() need android context. But I’m not familiar with Dagger. :( I’m using Koin on my daily project. So I add the property without DI.

If there is more clear way to add property with android context, please let me know.


Test on


  • Android Version: 13
  • Android Device: Pixel 4

babogoos avatar Dec 01 '22 08:12 babogoos