When configuring the timezone within Centos the correct timezone is not propagated and the output of the command date does not represent the timezone previously configured.
This can be caused by corrupted timezone files. To resolve the issue remove the soft-link, reinstall tzdata and then recreate the soft-link to the necessary timezone.
[[email protected] ~]# rm /etc/localtime
rm: remove regular file '/etc/localtime'? y
[[email protected] ~]# yum reinstall tzdata -y
[[email protected] ~]# ln -s /usr/share/zoneinfo/GB /etc/localtime
[[email protected] ~]# date
Fri May 22 12:05:06 BST 2011
- How to Configure a BIND Server on Ubuntu - March 15, 2018
- What is a BGP Confederation? - March 6, 2018
- Cisco – What is BGP ORF (Outbound Route Filtering)? - March 5, 2018
Want to become a Linux expert?
Here is our hand-picked selection of the best courses you can find online:
Linux Mastery course
Linux Administration Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial