CentOS Change Timezone

After installing CentOS we sometimes see that the date is not in our desired timezone, instead it defaulted to the PST timezone.

Correcting your timezone is an easy operation, so here is a quick guide to change your CentOS timezone configuration file.

Firstly you’ll need to know your timezone and/or country, a list can be found in /usr/share/zoneinfo/.

The more generic procedure to change the timezone is to create a symlink to file /etc/localtime

ln -sf /usr/share/zoneinfo/Europe/Bucharest /etc/localtime

OR you can copy and replace the current localtime setting

cp /usr/share/zoneinfo/Europe/Bucharest /etc/localtime

To verify that your timezone is changed use the date command:

date

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.