Time Zone In redhat/Centos
1. To enable UTC in server
/etc/sysconfig/clock
|-UTC=false
Otherwise we can use #setup and enable utc
Create a symlink to file localtime:
OR some distro use /usr/share/zoneinfo/dirname/zonefile format (Red hat and friends)
OR if you want to set up it to IST (Asia/Calcutta):
1. To enable UTC in server
/etc/sysconfig/clock
|-UTC=false
Otherwise we can use #setup and enable utc
Set timezone using /etc/localtime configuration file [any Linux distro]
Often /etc/localtime is a symlink to the file localtime or to the correct time zone file in the system time zone directory.Generic procedure to change timezone
Change directory to /etc# cd /etc
Create a symlink to file localtime:
# ln -sf /usr/share/zoneinfo/EST localtime
OR some distro use /usr/share/zoneinfo/dirname/zonefile format (Red hat and friends)
# ln -sf /usr/share/zoneinfo/EST localtime
OR if you want to set up it to IST (Asia/Calcutta):
# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime