Today's date doesn't change

Bug #759854 reported by Michael Terry on 2011-04-13
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Indicator Date and Time
Fix Released
Low
Unassigned
indicator-datetime (Ubuntu)
Low
Michael Terry

Bug Description

Binary package hint: indicator-datetime

If I suspend my computer and wake up the next day, the date label in the indicator-datetime menu hasn't changed (to be clear, I'm not talking about the label in the panel, but in the dropdown menu).

I don't know if it works correctly if left continuously going, but I know it happens upon a suspend/resume.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: indicator-datetime 0.2.2-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Wed Apr 13 10:15:46 2011
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_GB.utf8
 LC_MESSAGES=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: indicator-datetime
UpgradeStatus: Upgraded to natty on 2010-09-28 (197 days ago)

Related branches

Michael Terry (mterry) wrote :
Michael Terry (mterry) wrote :

OK, I know why this is happening. We schedule an update for the menu using g_timeout_add_seconds, with a calculated time one second after midnight. But that function pauses counting down while asleep. So if the user suspends, the update will be offset by however long the user suspended for.

Coming up with a patch.

Changed in indicator-datetime (Ubuntu):
assignee: nobody → Michael Terry (mterry)
status: New → In Progress
Ted Gould (ted) on 2011-04-14
Changed in indicator-datetime:
status: New → Fix Committed
milestone: none → 0.2.3
Ted Gould (ted) on 2011-04-14
Changed in indicator-datetime:
status: Fix Committed → Fix Released
Changed in indicator-datetime:
importance: Undecided → Low
Changed in indicator-datetime (Ubuntu):
importance: Undecided → Low
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-datetime - 0.2.3-0ubuntu1

---------------
indicator-datetime (0.2.3-0ubuntu1) natty; urgency=low

  * New upstream release.
    ∘ Use GTK directly for detecting when the menu appears and disappears
      to reset the date (LP: #649800)
    ∘ Handle items being removed from the locations list by choosing
      another item in the list (LP: #740948)
    ∘ Check for resume in the service and update the label as well
      (LP: #759854)
 -- Ted Gould <email address hidden> Thu, 14 Apr 2011 14:51:20 -0500

Changed in indicator-datetime (Ubuntu):
status: Fix Committed → Fix Released
Benno Hoelle (ender-error) wrote :

same Problem with newer indicator-datetime-service.

Workaround after every suspend:
kill $(pidof indicator-datetime-service)

root@lucie:/var/log# lsb_release -rd
Description: Ubuntu 12.04.4 LTS
Release: 12.04

root@lucie:/var/log# apt-cache policy indicator-datetime
indicator-datetime:
  Installiert: 0.3.94-0ubuntu2
  Kandidat: 0.3.94-0ubuntu2
  Versionstabelle:
 *** 0.3.94-0ubuntu2 0
        500 http://de.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers