Date/time indicator says it's the wrong date

Bug #750992 reported by Kent deVillafranca
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Indicator Date and Time
Confirmed
Low
Unassigned
indicator-datetime (Ubuntu)
Confirmed
Low
Karl Lattimer

Bug Description

Binary package hint: indicator-datetime

On Ubuntu Natty, the date/time indicator has the right date in the indicator tray, but the wrong date selected. This is similar to bug #744229, except the wrong date is written above the calendar, too.

Also, it just hit midnight here. The date in the indicator tray correctly changed to "Apr 5", but when I click the indicator to show the calendar, the date written above the calendar is still April 3!

The question came up in bug #744229, so I should mention that this computer has been suspended/resumed a few times over the past couple days.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: indicator-datetime 0.2.1-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Mon Apr 4 23:37:48 2011
ExecutablePath: /usr/lib/indicator-datetime/indicator-datetime-service
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110302)
ProcEnviron:
 SHELL=/bin/bash
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
SourcePackage: indicator-datetime
UpgradeStatus: Upgraded to natty on 2011-03-24 (11 days ago)

Revision history for this message
Kent deVillafranca (kdevilla) wrote :
Revision history for this message
Kent deVillafranca (kdevilla) wrote :

OK, I somehow managed to mess up pasting two screenshots together. The left one was supposed to be the "Apr 4 11:54 PM" one.

Revision history for this message
Karl Lattimer (karl-qdh) wrote :

I'll poke around at this one and see if I can identify a reason

Changed in indicator-datetime (Ubuntu):
assignee: nobody → Karl Lattimer (karl-qdh)
Changed in indicator-datetime (Ubuntu):
importance: Undecided → Low
Changed in indicator-datetime:
importance: Undecided → Low
Revision history for this message
Karl Lattimer (karl-qdh) wrote :

@Kent, could you retest this, as we now have a refresh occurring on resume this bug might now be fixed.

Revision history for this message
Kent deVillafranca (kdevilla) wrote :

I got the latest updates, restarted, then put the computer into suspend in the evening, but when it resumed after midnight the problem still showed up (I've attached a screenshot). Maybe it doesn't have anything to do with suspend/resume.

I just tried manually setting the date back by a couple days. The date in the indicator tray took a while to update, and the date above the calendar didn't change at all. Is there a log file I could look through that might help?

Revision history for this message
Kent deVillafranca (kdevilla) wrote :
Revision history for this message
Kent deVillafranca (kdevilla) wrote :

Huh, OK. It updated to show the correct date some time later.

I guess that means the bug's fixed, but I'm confused why it takes so long to show the correct date above the calendar when the date in the indicator tray is always right.

Revision history for this message
Julien Olivier (julo) wrote :

No, it's not fixed. It happens every time on my up-to-date Natty.

Revision history for this message
Kent deVillafranca (kdevilla) wrote :

Yeah, the bug's still not fixed. I clicked on the indicator today (Friday), and the text that shows up still insists that it's Thursday. Whatever made the indicator update to the correct time last time, it isn't happening now.

Revision history for this message
Kent deVillafranca (kdevilla) wrote :

Hmm, changing the time zone caused it to show the correct date.

Revision history for this message
Karl Lattimer (karl-qdh) wrote :

I *just* managed to reproduce this today for the first time. It still thinks it's yesterday, the calendar in the menu has updated. but both the menu and the panel date is wrong.

I'll look into it, hopefully there's an easy fix.

Karl Lattimer (karl-qdh)
Changed in indicator-datetime:
status: New → Confirmed
Changed in indicator-datetime (Ubuntu):
status: New → Confirmed
Revision history for this message
Karl Lattimer (karl-qdh) wrote :

I'd assume that what's happened in the case the date doesn't roll over is that the signal we're hooked up to from contextkit for updating isn't 100% accurate and missing a beat once in a while. That's what it looks like anyway, as I'm missing the messages associated with that.

What is needed here is a more reliable signal for when the computer resumes from suspend.

However, it also appears the time updates but not the date, which is curious.

Revision history for this message
Ryan Fugger (rfugger) wrote :

Right now I've got the *wrong* date in the indicator tray text ("Thursday, 23 June 2011") and the correct day selected in the calendar ("24"). But when I first clicked on it today, both were wrong ("22" was selected in the calendar). The second time I clicked, the calendar day had changed. These errors happen very frequently.

My suspicion is that the text displays the date from when I last suspended the computer to disk (hibernate -- suspend to RAM doesn't work on my machine), and the calendar date selected is the correct date for the last time I clicked on the date/time widget.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

This bug disturbs my preference to open the calendar to find todays date instead of using space on the panel to display date all the time. A workaround seems to be to open the calendar menu twice.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.