Summary: | Digital clock offset by a few seconds compared to local time | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Médéric Boquien <mboquien> |
Component: | Digital Clock widget | Assignee: | Martin Klapetek <mklapetek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde |
Priority: | NOR | ||
Version First Reported In: | 5.2.0 | ||
Target Milestone: | 1.0 | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/plasma-workspace/7de7fb53b0b779e197c893a5da3a8f510dd09d6d | Version Fixed In: | 5.3.0 |
Sentry Crash Report: | |||
Attachments: | Screenshot showing the issue. |
Description
Médéric Boquien
2015-02-06 21:10:56 UTC
Created attachment 90954 [details]
Screenshot showing the issue.
Bingo. http://quickgit.kde.org/?p=plasma-workspace.git&a=blob&h=e78f1f369a45447cea32483eab80dc8508145a4b&hb=e42e123948e8f44a5807873349764250b0d9cbec&f=applets%2Fdigital-clock%2Fpackage%2Fcontents%2Fui%2Fmain.qml#l45 If I understood correctly line 45 (which is not a given as it is the first time in my life i see QML), the clock is updated every 30 seconds, which means it can be up to 15 seconds off. It would need a one-shot update at startup (as KDE 4 did I guess) before switching to an interval update. Thanks! >as KDE 4 did I guess
Sort of.
DataEngine::connectToSource() has an argument intervalAlignment,
which for the clock was Plasma::AlignToMinute
that's not available in the QML bindings for dataengines.
I'm not sure if there's a use case outside the clock for it; we could fix it generically for engines; or just in the clock.
Patch currently under review https://git.reviewboard.kde.org/r/122470/ Git commit 7de7fb53b0b779e197c893a5da3a8f510dd09d6d by Kai Uwe Broulik. Committed on 16/02/2015 at 17:46. Pushed by broulik into branch 'master'. Align digital clock to full minutes This also allows to increase the polling interval to 60 seconds REVIEW: 122592 FIXED-IN: 5.3.0 M +2 -1 applets/digital-clock/package/contents/ui/main.qml http://commits.kde.org/plasma-workspace/7de7fb53b0b779e197c893a5da3a8f510dd09d6d |