Changing the timezone Print

  • 50

If you're like us, you'll want your server's timezone to match your local time to make log management easier. Fortunately, this is easy to do! This guide works perfectly on servers running CentOS and may vary on other Linux distributions.

mv /etc/localtime /etc/localtime.bak
ln -s /usr/share/zoneinfo/Europe/London /etc/localtime

In the above example, we've taken a backup of the /etc/localtime file, and adjusted the timezone to Europe/London.

To make this change permanent, you need to edit the file /etc/sysconfig/clock and add the entry ZONE="Europe/London" and save the file. This will keep the time zone even after the server reboot.

A list of supported timezones can be found here.

Was this answer helpful?

« Back

We're trusted by amazing customers in 136 countries - come & join us!
OR.S May 10, 2024
Excellent host

Excellent host. Prompt replies in good, clear English, easy migration from HG, good speed, all necessary info provided on sign up (ftp, logins etc) error free. Highly recommended.

Christopher James May 1, 2024
I'm very pleased

Affordability, reliability and great customer service. I hos ted my website here. George built something that will potentially be big.

Paola Meyer April 13, 2024
Customer Attention is 5 Stars

Customer Attention. Staff of Ethernet Servers is superb, fast and answers tickets in a pretty speedy manner.

stxsh February 17, 2024
Excellent Provider with Exceptional Support

Been with them for a week and the transition from old hostin g to ethernetserver has been nothing but a joyful experience. Setting up new vps, networking is like a breeze. All set up by george and nothing to worry about really.

Ethernet Servers Ltd
124 City Road
United Kingdom

Registered Limited Company: #09114946

+44 330 043 1258


Copyright © 2014 - 2024 - Ethernet Servers Ltd - All Rights Reserved.

Proudly serving customers in 136 countries since September 2013!