Ubuntu – Clock displays incorrect time

11.0464-bittime

I've just installed 64-bit Ubuntu 11.04 and after I updated it, the clock stopped displaying the right time. It's now 8 hours behind my normal time. I've checked the Time and Date settings and the Location field is correct. What's even weirder is that the time displayed in Time and Date Settings adjusts itself after a few seconds and is correct. The time displayed in the task bar remains the same, however.

Any ideas?

Best Answer

  • You can use the GUI in the time and date preferences to set your timezone and then be sure to run this command in the terminal:

    sudo ntpdate ntp.ubuntu.com
    

    This will ensure that your machine polls the ubuntu server to get the right time and date for your timezone.

    To verify, type

    date    
    

    in the terminal.