Bug 493232

Summary: If no timezone is set the digital clock shows nothing
Product: [Plasma] plasmashell Reporter: Justin Zobel <justin>
Component: Digital ClockAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: julian.g, kagami, nate
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.3.0
Sentry Crash Report:

Description Justin Zobel 2024-09-16 23:13:16 UTC
While testing KDE OS / Banana OS early preview image I found this bug as the image has no timezone set.

STEPS TO REPRODUCE
1. Have no timezone set
2. Look at Digital Clock

OBSERVED RESULT
Blank applet

EXPECTED RESULT
Some sort of message that indicates why it's blank.

This would be a simple check if timezone is blank/null, display a message to the user advising of this.
It could either be an icon with a tooltip or text directly on the applet.
Something along the lines of "No timezone is set, please click here to set a timezone"
This helps the user identify why they have no clock and fix it.
Comment 1 Nate Graham 2024-09-16 23:20:32 UTC
Definitely a distro error, but yeah, we can surface the error in the UI for easier debugging.
Comment 2 Nate Graham 2024-09-19 00:49:24 UTC
*** Bug 493341 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2024-09-19 00:49:55 UTC
Apparently it's also possible to mess this up while installing Arch; see Bug 493341.
Comment 4 Justin Zobel 2024-09-27 02:20:48 UTC
*** Bug 492074 has been marked as a duplicate of this bug. ***
Comment 5 Bug Janitor Service 2024-09-29 21:28:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4766
Comment 6 Niccolò Venerandi 2024-11-08 14:24:56 UTC
Git commit 258b6be05359ffa83c3f17484fbce40e1b75a56c by Niccolò Venerandi.
Committed on 08/11/2024 at 14:24.
Pushed by niccolove into branch 'master'.

Show error message in digital clock when no timezone is set

A  +41   -0    applets/digital-clock/package/contents/ui/NoTimezoneWarning.qml     [License: GPL(v2.0+)]
M  +8    -3    applets/digital-clock/package/contents/ui/Tooltip.qml
M  +32   -9    applets/digital-clock/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/258b6be05359ffa83c3f17484fbce40e1b75a56c