codinguser / gnucash-android

Gnucash for Android mobile companion application.
Apache License 2.0
1.23k stars 540 forks source link

Date and time format should be per system settings #631

Open pnemonic78 opened 7 years ago

pnemonic78 commented 7 years ago

Steps to reproduce the behaviour

  1. go to system settings
  2. Date and time
  3. "Use 24-hour format" checked
  4. Go to gnucash
  5. Add or edit transaction

Expected behaviour

Time should be 24-hour format

Actual behaviour

Time shows with "a.m"/"p.m"

Software specifications

rivaldi8 commented 7 years ago

It seems it formats the time according to the default for your locale (see TransactionFormFragment.TIME_FORMATTER), which might not be the same as the one set in Android settings. In my case it's the reverse. I have a.m./p.m. in the settings but the time is shown in 24-hour format in the application.

codinguser commented 7 years ago

We could try to change it to something similar to that described here: http://stackoverflow.com/a/3401023