Bug 485915

Summary: Clock digits are not localized
Product: [Plasma] plasmashell Reporter: Zayed Al-Saidi <zayed.alsaidi>
Component: Digital Clock widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: nate, nplatis
Priority: NOR Keywords: regression
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=393956
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Status as of 21-April-24

Description Zayed Al-Saidi 2024-04-21 18:18:00 UTC
Created attachment 168755 [details]
Status as of 21-April-24

This is a regression from KDE Plasma 5. The clock text number is not following the system locale. My locale is ar_OM.UTF-8 which follows Eastern Arabic numerals. However, the time is displayed in English numerals. 

Please note that the tool tip is displaying the numbers correctly in my locale. 

I'm using KDE neon unstable git20240420.
Comment 1 Nikos Platis 2024-07-03 18:24:55 UTC
Confirming in Plasma 6.1.1: My system locale is Greek, but time in digital clock is displayed in US locale (e.g. 9:24 PM). Confirming also that the tooltip follows the greek locale correctly.
Comment 2 Nate Graham 2024-07-30 17:27:44 UTC
Can reproduce with `LANG=ar_OM plasmashell --replace`

Numbers in other places look correct, e.g. the calendar days, or temperature in the weather widget. Seems to be limited to clock digits.
Comment 3 pallaswept 2025-02-26 14:18:25 UTC
I have a possible fix for this. It uses the 'Number' format, rather than the 'Time' format, that's just how Qt determined it. Is that acceptable?