Bug 493232 - If no timezone is set the digital clock shows nothing
Summary: If no timezone is set the digital clock shows nothing
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock (show other bugs)
Version: master
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 492074 493341 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-09-16 23:13 UTC by Justin Zobel
Modified: 2024-11-08 15:45 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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