Bug 416726 - Wrong time format for Chinese (zh_CN) locale
Summary: Wrong time format for Chinese (zh_CN) locale
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.17.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-25 08:01 UTC by oldherl
Modified: 2021-03-10 22:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
12 vs 24 hour (80.42 KB, image/png)
2020-01-25 08:01 UTC, oldherl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oldherl 2020-01-25 08:01:46 UTC
Created attachment 125388 [details]
12 vs 24 hour

SUMMARY

I am using zh_CN.UTF-8 locale.
This locale should use a 24-hour time format, as the command line utility `date` uses. The locale definition file in `/usr/share/i18n/locales/zh_CN` shows 24-hour, too. But all date/time in KDE applications (dolphin, sddm, etc) uses 12-hour format, which is strange for Chinese users.

I am aware of the 12/24 hour switch in the digital clock plasmoid, but that doesn't control the whole KDE. 

All other Chinese locales (zh_TW, yue_HK, etc) use 12-hour in KDE. But the Japanese (ja_JP) uses 24-hour correctly.

Per my understanding, KDE should define the time format in each locale as the same in other Linux utilities.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 oldherl 2020-01-25 08:04:37 UTC
Sorry for the missing information:

STEPS TO REPRODUCE
1. set locale environment variables to zh_CN.UTF-8 
2. open "System Settings" and then "Regional"
3. open a terminal and run `date`

OBSERVED RESULT
KDE uses 12-hour while `date` uses 24-hour format.

EXPECTED RESULT

Both should use 24-hour format.
Comment 2 Christoph Feck 2020-02-13 20:12:20 UTC
KDE uses the Qt locale classes, which in turn use data from the CLDR. The UNIX locale databases are not used, because they lack many entries needed by Qt.

I suggest to report the issue to CLDR developers.
Comment 3 Nate Graham 2021-03-10 22:12:36 UTC
Yep. :)