Set the localtime on a Linux system

cd /etc

Set the timezone of your server location:

ln -sf /usr/share/zoneinfo/Europe/Berlin localtime

Check the new settings with:

date

If you have set the hardware clock with an UTC timestamp, the date command will calculate the correct time offset using the localtime settings (including daylight save time switch).

Leave a Reply