Page 1 of 1

Issues with "Properties" - inconsistent time forma

Posted: 2011-06-11, 12:54 UTC
by Slavic
Inconsistency with time format in Change time dialog
My device has English interface but time format in Settings, Date and time is set 24-hour. TC with "Language: System default" setting shows the time as 12-hour AM/PM, the same 12-h in Properties; however, in the "Change time of file" dialogue this time is shown in 24-hours format.
I'm not sure, however, whether it's TC problem or a bug in my OS; it would be better to check on more last Android versions.

Posted: 2011-06-13, 08:39 UTC
by ghisler(Author)
Total Commander uses the DateFormat object to convert the time to text. In the file list, it uses the format DateFormat.SHORT. In properties, it uses DateFormat.MEDIUM.

The actual date depends on the regional settings of your device. Unfortunately when you set the locale manually, this will not only change the display language, but also the date format. So if you change the language from default to English, you will get U.S. AM/PM format.

So far I couldn't find a way to separate the display languange from the date format. If anyone has an idea, please let me know.