Bug 280574 - x11-wm/lxqt-panel: broken panel clock
Summary: x11-wm/lxqt-panel: broken panel clock
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: LXQT Mailing List (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-02 16:47 UTC by bsduck
Modified: 2024-11-09 05:52 UTC (History)
3 users (show)

See Also:
linimon: maintainer-feedback? (lxqt)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bsduck 2024-08-02 16:47:27 UTC
Hello,

Since the update to LXQt 2.0.0, the panel clock doesn't work anymore. It doesn't show any date or time, just a blank space, and won't display any tooltip either when enabled. The built-in calendar does work, though.

Tested on Linux (openSUSE Tumbleweed) to compare and it works there.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2024-08-02 16:47:27 UTC
Maintainer informed via mail
Comment 2 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2024-08-02 18:19:31 UTC
Thanks, also see the root cause https://bugreports.qt.io/browse/QTBUG-1263.
You might be able to fix it be either setting your timezone with tzsetup or by setting TZ env manually..  We added logic in startlxqt to set TZ based on /var/db/zoneinfo. But TZ is not set if you do not have a /var/db/zoneinfo (written by tzsetup)
If you are UTC set TZ="UTC" i guess.. 



if [ -f /var/db/zoneinfo ]; then TZ=`cat /var/db/zoneinfo`;
        cmp -s /usr/share/zoneinfo/$TZ /etc/localtime
        if [ $? -eq 0 ]; then
                export TZ="${TZ}"
        fi
fi
Comment 3 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2024-08-02 18:20:21 UTC
https://bugreports.qt.io/browse/QTBUG-126300
Comment 4 bsduck 2024-08-03 00:28:56 UTC
Thanks for the feedback, unfortunately I do already have /var/db/zoneinfo but it doesn't seem to help.

$ cat /var/db/zoneinfo
Europe/Zurich
Comment 5 bsduck 2024-08-03 00:42:20 UTC
... well, that's strange: I just ran tzsetup as root, after which I still have the same content in /var/db/zoneinfo as before (Europe/Zurich), but now after logging out and back in, the clock does work again. What could be the reason for this?
Comment 6 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2024-09-10 06:00:07 UTC
(In reply to bsduck from comment #5)

Perhaps the /etc/localtime file was missing. Tell us if this PR can be closed
Comment 7 Jesper Schmitz Mouridsen freebsd_committer freebsd_triage 2024-09-18 12:46:16 UTC
(In reply to Jose Alonso Cardenas Marquez from comment #6)
It happend to me after an freebsd-update to 14.1, perhaps the timezone db share files got updated.. or something else caused the cmp command in startlxqt to fail...workaroudn set TZ manually or rutn tzsetup again..