apt-get install ntp

Edit ntp config file:

vim /etc/ntp.conf

Update the 4 “server pool.ntp.org” lines to your locale. e.g. UK:

server 0.uk.pool.ntp.org
server 1.uk.pool.ntp.org
server 2.uk.pool.ntp.org
server 3.uk.pool.ntp.org

All zones can be found here http://www.pool.ntp.org/zone/@

Check the date/time is indeed correct:

date

Credit goes to http://wiki.debian.org/DateTime

Written by Matt Cooper
Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk.