88

I'm running Ubuntu 13.10 with dual boot along side Windows 8.

The top panel or bar doesn't display the time.

When I open the Clock menu, all the settings over there are grayed out
Settings > Time and date > Clock

I tried other methods (like dconf) but that didn't work.

Zanna
  • 69,223
  • 56
  • 216
  • 327
lastman93
  • 1,003
  • 1
  • 7
  • 7

6 Answers6

169
  1. Reinstall indicator-datetime. It should be installed by default, but just in case you have removed it unknowingly, it is best to run the install command again.

    sudo apt-get install indicator-datetime
    
  2. Next, we are going to reconfigure the date time:

    sudo dpkg-reconfigure --frontend noninteractive tzdata
    
  3. Lastly, restart unity.

    sudo killall unity-panel-service
    

That’s it. The date and time indicator will appear in the menu bar now.

(Source)

David Foerster
  • 35,754
  • 55
  • 92
  • 145
dartdog
  • 1,821
  • 1
  • 11
  • 8
81

For me, it was enough to restart unity:

sudo killall unity-panel-service
wachr
  • 911
  • 6
  • 5
19

WARNING: All users will logout immediately, possibly losing data. All applications will also close.

It is happening to me sometimes, the solution is:

sudo restart lightdm
user151472
  • 191
  • 3
3

I've been in the same situation myself once. What I've made was to reinstall gnome-control-center using the following commands in terminal:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install --reinstall gnome-control-center

After I restart the GUI from tty1 uing the following command:

sudo restart lightdm

the problem didn't appeared again until now.

Radu Rădeanu
  • 166,822
  • 48
  • 327
  • 400
0

It means your chosen region is not matched to your local server.

To correct: 1/ set the time&date to your actual region (eg China) 2/ use synaptic to select the repository server for your actual region (eg China). 3/ reboot.

This should solve the issue. Recurrence may be caused by change in location, or change in server, or update/upgrade. If so, repeat the above.

rob grune
  • 989
  • 1
  • 8
  • 17
0

Or you can simply restart your computer. Time will show itself on the top panel again. I have also faced this problem a few times.

Because sometimes sudo lightdm restart won't work

Muddassir Nazir
  • 4,421
  • 6
  • 23
  • 39