fast and secure web hosting. from a simple website to a highly visited e-shop  

set timezone

How to set date/timezone on a Linux server

Using the console (terminal) execute the commands below:

ln -sf /usr/share/zoneinfo/Europe/Athens /etc/localtime
export TZ=Europe/Athens

Change the above to your timezone. Supported timezones:
http://php.net/manual/en/timezones.php  

Check the time with the following command:

date

Change the hardware clock:

hwclock --systohc

Check the hardware clock

hwclock --show

Need a fast and reliable dedicated server in Europe? Check our dedicated servers offers.

Subscribe to RSS - set timezone