tutorial

Setting Date In Linux (CentOS) to GMT/London

When you set up your linux webserver for the first time you may notice that the date is not correct, simply enter the two lines below into your terminal to set the correct date:

Enter the first line: (removes the existing date/time settings)

rm /etc/localtime

Then enter this line: (sets the date/time correctly)

ln -s /usr/share/zoneinfo/Europe/London /etc/localtime

Then simply type the command below to check the date and time are correct:

date