calendar widget displays wrong day and date

Bug #1001127 reported by Anton Piatek
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Indicator Date and Time
Confirmed
Undecided
Unassigned
indicator-datetime (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Today is Friday:
$ date
Fri May 18 08:46:53 BST 2012

The calendar widget in Unity is showing today as Wed 16 May on the dropdown as shown in the attached screenshot. My laptop was probably last rebooted on Wed, and has been asleep overnight since.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: unity 5.12-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic-pae 3.2.14
Uname: Linux 3.2.0-24-generic-pae i686
NonfreeKernelModules: symap_custom_3.2.0_24_generic_pae_i686 symev_custom_3.2.0_24_generic_pae_i686
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,unitymtgrabhandles,workarounds,scale,expo,ezoom,unityshell]
Date: Fri May 18 08:46:33 2012
EcryptfsInUse: Yes
InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: Upgraded to precise on 2012-04-27 (20 days ago)

Revision history for this message
Anton Piatek (anton-piatek) wrote :
affects: unity (Ubuntu) → indicator-datetime (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, does it stay like that or is it happening only on first menu opening after resume?

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Does this mean the indicator doesn't update date after a resume?

I think there were similar reports about this earlier too. But I don't think the problem is widespread, since it doesn't happen to me. Probably having ntpdate run repeatedly squashes the issue, but that's not the right way to fix it.

Is your computer connected to the internet right after resume?

Changed in indicator-datetime:
status: New → Incomplete
Changed in indicator-datetime (Ubuntu):
status: New → Incomplete
Revision history for this message
Anton Piatek (anton-piatek) wrote :

The problem was happening every time I opened the menu. The computer was connected to the internet, and even after several hours it still did not update.
The system date is correct and I dont think ntpdate is related.

I have rebooted the computer today and the correct date is showing. I will see what happens tomorrow after I suspend it all night.

Revision history for this message
Anton Piatek (anton-piatek) wrote :

Screenshot of widget this morning having suspended overnight. Note that top bar shows correct date, widget pull out pane still shows yesterday. computer has been awake and connected to the internet since resuming ~30 minutes ago

Revision history for this message
Daniel M. Basso (dmbasso) wrote :

The bug happens for me too. It doesn't make sense to require an internet connection, when you can use the system's time. My computer takes some seconds to connect to the wireless network after being resumed, so that is one possible reason for the bug to occur.

Changed in indicator-datetime:
status: Incomplete → Confirmed
Revision history for this message
Anton Piatek (anton-piatek) wrote :

Interestingly, this morning I noticed that the widget is showing yesterday's date, but uptime confirms my laptop was rebooted a week ago. So the widget is updating the date, but seems to be lagging behind by a day. The correct day in the month is highlighted in the calendar grid, just the text date above the calendar is wrong (and if enabled in the status bar, that date is correct)

Vladimir Pycha (vpycha)
Changed in indicator-datetime (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Vladimir Pycha (vpycha) wrote :

I can confirm what Anton Piatek says. This bug affects me too. Using Ubuntu 12.04 on i386, just like Anton. My computer was hibernated overnight too. Now there is incorrectly shown "Tuesday, 5 January 2013" on the dropdown, but there is correctly highlighted January 6 in the calendar grid (Anton described this too). This happened also some previous days (probably only when I decided to hibernate the computer instead of shutting it down before I went to bed). I can confirm that it keeps showing the bad date, it does not get corrected (probably until I logout).

Revision history for this message
Vladimir Pycha (vpycha) wrote :

correction: of course February, not January :)

Revision history for this message
arnoldbird (ryandw) wrote :

I'm seeing this bug in 12.04 LTS. The date at the top of the dropdown is always Tuesday, 1 January 1980. But the correct date is highlighted in the calendar, and the date command gives the correct date.

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.