Issues with "Properties" - inconsistent time forma

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Slavic
Senior Member
Senior Member
Posts: 290
Joined: 2006-02-26, 15:41 UTC
Location: Montenegro

Issues with "Properties" - inconsistent time forma

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
Post Reply