[pkg-lxqt-devel] Bug#855379: lxqt-panel: Time off by nearly one minute

Philipp Marek philipp.marek at linbit.com
Fri Feb 17 11:00:41 UTC 2017


Package: lxqt-panel
Version: 0.11.1-1
Severity: normal

The code shown at
https://github.com/lxde/lxqt-panel/blob/master/plugin-worldclock/lxqtworldclock.cpp#L281
chooses to do updates only every 60 seconds, if there's no second specifier 
in the format string.

This breaks with machines that do suspend/resume cycles, because upon 
resuming the 60-second intervals are not aligned to the wall clock time 
anymore, and so the displayed time can be off by up to a minute - and, on 
average, will be off by 30 seconds.

This is really awful if you're trying to debug a cron job and keep using 
time values that won't trigger the next 23 hours - or when checking some 
other machines' date and time (and see it switch to the next minute much 
earlier than the local time).


Either this needs resynchronization (preferably), or should run at least 
every few seconds to limit the maximum error.
Perhaps looking at the current time and estimating the interval to the next 
required update would be a good idea.


Thanks a lot!


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lxqt-panel depends on:
ii  libasound2              1.1.3-4
ii  libc6                   2.24-9
ii  libdbusmenu-qt5-2       0.9.3+16.04.20160218-1
ii  libglib2.0-0            2.50.2-2
ii  libkf5solid5            5.28.0-2
ii  libkf5windowsystem5     5.28.0-1
ii  liblxqt-globalkeys-ui0  0.11.1-1
ii  liblxqt-globalkeys0     0.11.1-1
ii  liblxqt0                0.11.1-1
ii  libmenu-cache3          1.0.2-1
ii  libpulse0               10.0-1
ii  libqt5core5a            5.7.1+dfsg-3+b1
ii  libqt5dbus5             5.7.1+dfsg-3+b1
ii  libqt5gui5              5.7.1+dfsg-3+b1
ii  libqt5widgets5          5.7.1+dfsg-3+b1
ii  libqt5x11extras5        5.7.1~20161021-2
ii  libqt5xdg2              2.0.0-5
ii  libqt5xml5              5.7.1+dfsg-3+b1
ii  libsensors4             1:3.4.0-3
ii  libstatgrab10           0.91-1
ii  libstdc++6              6.3.0-6
ii  libsysstat-qt5-0        0.3.3-1
ii  libx11-6                2:1.6.4-3
ii  libxcb-xkb1             1.12-1
ii  libxcb1                 1.12-1
ii  libxcomposite1          1:0.4.4-2
ii  libxdamage1             1:1.1.4-2+b1
ii  libxkbcommon-x11-0      0.7.1-1
ii  libxkbcommon0           0.7.1-1
ii  libxrender1             1:0.9.10-1
ii  lxmenu-data             0.1.5-2

Versions of packages lxqt-panel recommends:
pn  lxqt-panel-l10n  <none>

lxqt-panel suggests no packages.

-- no debconf information



More information about the pkg-lxqt-devel mailing list