Bug 484543

Summary: Display of localized time is wrong under zh_TW locale
Product: [Plasma] plasmashell Reporter: Chaoting Liu <brli>
Component: Digital Clock widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: franklin, juliano_tsou, s8321414
Priority: NOR    
Version First Reported In: 6.0.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: the system settings window

Description Chaoting Liu 2024-03-26 18:48:14 UTC
Created attachment 167808 [details]
the system settings window

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY


STEPS TO REPRODUCE
1. Go to: System Settings>Region & Language>Time>Modify, and Check for the zh_* paragraph
2. The time format of zh_TW.UTF-8 should either be 12-hour (with localized am/pm) or 24-hour
3. It is indeed prefixed with an unknown letter "B"

1. Set the system locale to Chinese(Taiwan) and re-login
2. Lock the screen
3. Check that the Clock widget is showning a "B" in front of the hour

1. hover over the default digital clock widget
2. the pop-up has a strange format of display of current time, different from shown as widget

1. have a file alternation from dolphin (copy, cut, download, etc.)
2. check that the notification have it done
3. after a while, check the notification history, the time of finish is displayed with a prefix of "B" instead of a normal time format.

OBSERVED RESULT

as explained above, a prefixed "B"

EXPECTED RESULT

a normal, localized 12-hour format, or a universal 24-hour format

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION

Also confirmed on fresh installed OpenSuse Tumbleweed with Taiwan locale which utilize plasma 6 under VM.

a small qt c++ console application shows that it seems not related to C++/ICU/Glibc, but a fail in render in QML?
Comment 1 Franklin Weng 2024-04-02 06:17:06 UTC
*** Bug 484896 has been marked as a duplicate of this bug. ***
Comment 2 Jeff Huang 2024-04-02 06:25:20 UTC
I can confirm this issue for Plasma 6.0.3, Frameworks 6.0.0, Qt 6.6.3 on Arch Linux.
And it seems to be a Qt bug: https://bugreports.qt.io/browse/QTBUG-123872
But we don't have this bug on Plasma 5.
Comment 3 Chaoting Liu 2025-10-27 09:59:22 UTC
fixed in https://bugreports.qt.io/browse/QTBUG-123872, landed in Qt 6.7