Bug 474422 - Date format (long/short) doesn't work
Summary: Date format (long/short) doesn't work
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-09-11 18:38 UTC by Enrico
Modified: 2023-11-09 01:04 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico 2023-09-11 18:38:25 UTC
Hello,
I've tested the last KDE Neon Unstable with Plasma 6. I tried to change the date format from short to long but nothing happens.

STEPS TO REPRODUCE
1.  Open the Digital Clock settings right-clicking on the bottom-right clock
2. Change the date format to "Long"

OBSERVED RESULT
The preview (in the settings page) doesn't change. Also applying the change does nothing.

EXPECTED RESULT
The date format should change as in 5.27.7
Comment 1 Enrico 2023-09-11 18:43:16 UTC
Sorry, the missing OS information

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0
Kernel Version: 6.2.0-32-generic (64-bit)
Graphics Platform: X11
Comment 2 Nate Graham 2023-09-12 14:30:16 UTC
Yep, needs fixing.
Comment 3 Bug Janitor Service 2023-10-16 20:52:34 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3415
Comment 4 Fushan Wen 2023-11-09 01:04:00 UTC
Git commit 5a32ea2b636c3ef2b4215fafcb78bc17dd93190c by Fushan Wen, on behalf of Amy Rose.
Committed on 09/11/2023 at 02:03.
Pushed by fusionfuture into branch 'master'.

applets/digitalclock: port date formatting to Qt 6

This MR updates the date formatting to use `Locale.ShortFormat` and `Locale.LongFormat` instead of the removed `Qt.SystemLocaleShortDate` and `Qt.SystemLocaleLongDate`.
FIXED-IN: 6.0

M  +8    -3    applets/digital-clock/package/contents/ui/DigitalClock.qml
M  +12   -5    applets/digital-clock/package/contents/ui/configAppearance.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/5a32ea2b636c3ef2b4215fafcb78bc17dd93190c