Bug 492423 - ISO date not used in KDE application, GTK does apply correct date settings
Summary: ISO date not used in KDE application, GTK does apply correct date settings
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_regionandlang (other bugs)
Version First Reported In: 6.1.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-30 21:08 UTC by tneo
Modified: 2024-09-16 14:40 UTC (History)
2 users (show)

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


Attachments
settings (18.74 KB, image/png)
2024-08-30 21:08 UTC, tneo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tneo 2024-08-30 21:08:13 UTC
Created attachment 173140 [details]
settings

SUMMARY
Date settings as set through systemsettings are not applied to KDE applications, but Gnome application adhere to the setting.


STEPS TO REPRODUCE
1. Configure system to use en_CA
2. Change the date-time display to ISO with en_DK
3. Log-out and back in

OBSERVED RESULT
KDE applications do not follow my desired settings for displaying date and time. GTK applications do follow my settings. KDE application only have en_US as a language option and there is no way for me to change that.

EXPECTED RESULT
KDE should use my settings for date-time as desired. Make it a simple check box "use 24-hr" clock would help already (as done in the clock applet). 

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240826
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.5-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
According to the Internet setting my language to en_GB (which I don't want) should resolve the time display issue as well. That does not work and I have now set the time to C as that (at least in settings) displays the way I want time and date to display. However KDE applications don't follow these settings, where GTK applications do. Also the translations work correct in GTK, but KDE sticks to en_US and does not apply my chosen language/ translation.

I have found this bug from 2014, but that is closed: https://bugs.kde.org/show_bug.cgi?id=340982
There is also a discuss thread: https://discuss.kde.org/t/how-do-i-properly-set-the-language-with-a-fallback/10295

Why can Gnome handle this correctly and QT/ KDE is unable to?
Why does every application apply it's own language setting? That does not make any sense.


cat /etc/locale.conf 
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en_US:en
LC_TIME=C

cat .config/plasma-localerc 
[Formats]
LANG=en_CA.utf-8
LC_TIME=C

[Translations]
LANGUAGE=:en_GB:en_CA
Comment 1 hanyoung 2024-08-31 04:26:45 UTC
can you change 'LANGUAGE=:en_GB:en_CA' to 'LANGUAGE=en_GB:en_CA' and reboot, then see if the issue goes away?
Comment 2 tneo 2024-09-01 20:00:33 UTC
The issue remains. There is no way that KDE allows me to set a different primary language or ability to display date-time in my desired format. What good does a setting option have if it is not followed by the KDE framework...
Comment 3 Nate Graham 2024-09-07 08:11:32 UTC
Can you paste the output of `env | grep 'LANG\|LC'` ?
Comment 4 tneo 2024-09-08 05:17:12 UTC
env | grep 'LANG\|LC'
LANGUAGE=en_GB:en_CA
LANG=en_CA.utf-8
LC_CTYPE=en_US.UTF-8
LC_TIME=C
LC_ALL=en_US.UTF-8
Comment 5 Nate Graham 2024-09-08 09:29:37 UTC
Thanks, the settings look OK to me.

Can you be specific specific about exactly which KDE apps are not respecting this, and where exactly in the apps it's happening?
Comment 6 tneo 2024-09-09 03:09:49 UTC
* Dolphin: refuses to show ISO date and time and sticks to the 12hr clock. 
* Kmymoney: sticks to using US data notation.
* Libreoffice does not adhere, I needed to force notation in a cell, while that did not needed to be the case. (Though I understand that is out of the KDE project scope). 
* The digital clock widget, need to toggle it manually to 24hr clock.
* The value for time to be set to "C" shows under settings the desired format, yet it is not adhered in applications.
Comment 7 tneo 2024-09-09 03:11:39 UTC
To be specific where it does not follow:
- Dolphin: general view for files
- Kmymoney: when you do a data entry with a date value
- Libreoffice: when a cell is set to date
Comment 8 Nate Graham 2024-09-16 14:40:14 UTC
Thanks. I'm starting to suspect this is actually a series of app bugs, not a general issue. I can confirm it in Dolphin and I believe Dolphin uses a hardcoded date style so that it can toggle between relative and absolute dates. Perhaps the absolute date option doesn't respect the systemwide config.

I'm not familiar with KMyMoney, but it sounds like it could be a similar issue, and I strongly suspect that the LibreOffice bug — which I can also confirm — is the same.

Can you open new individual bug reports for this, one per app? Thanks a lot!