Bug 285436 - Digital clock shows incorrect time after suspend/resume.
Summary: Digital clock shows incorrect time after suspend/resume.
Status: RESOLVED DUPLICATE of bug 171120
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-clock (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 03:07 UTC by Nikita Skovoroda
Modified: 2011-11-02 06:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Skovoroda 2011-11-01 03:07:36 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Digital clock (in default format) updates once a minute.
After suspend/resume digital clock does not get updated immediately and displays the old time for (from 0 to 60) seconds.
The tooltip always shows the correct time.

Reproducible: Always

Steps to Reproduce:
1) Use digital clock in default format (hh:mm, no seconds).
2) Suspend, wait some time (2 minutes is ok).
3) Resume. You should resume on time, when the minute just begins, but you can just do several random tries.
4) Look at the time the digital clock shows.
5) Hower the clock with mouse. Look at the time in the tooltip.

Actual Results:  
1) The digital clock is late by the time the computer was suspended, it shows the suspend time.
2) The tooltip time is correct, but not equal to the time digital clock shows itself.
3) They get synced again when the minute ends (in 0-60 seconds).

Expected Results:  
Digital clock should be immediately updated on resume, and show the correct time. The time the clock shows should be equal to the time its tooltip shows.

Russian locale, KDE version: git 2011-10-26.
Comment 1 Christoph Feck 2011-11-01 18:57:28 UTC

*** This bug has been marked as a duplicate of bug 171120 ***
Comment 2 Nikita Skovoroda 2011-11-02 06:02:18 UTC
But that bug is marked as duplicate of Bug #181380 ("Plasma clock doesn't update immediately when system time modified."), and that couldn't be fixed nicely. That bug has a different (partial) solution (from comments): update time on timezone change, and it doesn't help here.

Can this bug be fixed just by updating time on wake-up?