87

I just ran a clean install of 12.10 on my sys76 laptop.

Time and date reads: 19:36 31 december 1969, even though it is: 13:29 07 november 2012.

I have it set for my location and it won't change manually, even tried in the command line with tz.

I think it is messing up the security certificates over the Internet cause I cannot change PPA over command line and going to Launchpad brings up the certificates page in Firefox.

Is this some known bug or is there a fix for it?

dysonsphere
  • 871
  • 1
  • 7
  • 3

8 Answers8

92

Try:

sudo ntpdate ntp.ubuntu.com

Yes, it would certainly mess with the SSL certificates, because they would be future-dated.

I doubt it's a bug in Ubuntu. Your CMOS clock in the BIOS must have been set to that somehow.

Will Daniels
  • 1,746
41

Just install ntp server:

sudo apt-get install ntp

It will automatically keep your clock synchronized.

Eric Carvalho
  • 55,453
26

Install ntp and ntpdate executing the following commands-

sudo apt-get install ntp
sudo apt-get install ntpdate

Then, execute

sudo ntpdate ntp.ubuntu.com

This works for me.

5

find your timezone:

timedatectl list-timezones

and then set your timezone based on your choice:

timedatectl set-timezone <YOUR_TIME_ZONE>
Sina
  • 231
5

After installing 12.10 I had the same problem as well. Somehow the new installation set the BIOS clock to the year 2070 !! After this, Ubuntu wasn't able to set a different date both by ntp, manually, even using the date command.

Setting the right date in the BIOS settings solved the problem.

aizquier
  • 186
3

This works for Ubuntu 16.04

  1. Stop the ntp service

  2. Run ntpdate command to fetch date/time from ntp.ubuntu.com

    systemctl stop ntp
    sudo ntpdate -s ntp.ubuntu.com
    

P.S: Make sure ntp is installed, if not just do

sudo apt-get install ntp
shylynx
  • 2,411
2

I changed the hardware clock. Use the hwclock command to fix it:

sudo ntpdate <my.ntp.server>
sudo hwclock -w
renedet
  • 121
1

Install this package to get the clock of your server right:

sudo apt install aptitude
sudo aptitude install ntp

Then define your time zone (the one where your server is located):

sudo dpkg-reconfigure tzdata

Details:

https://safaetulahasan.medium.com/set-time-of-your-server-right-7145899166a4