Search for the required time zone available ex. Asia
timedatectl list-timezones | grep -i Asia
Unlink the current time zone from local time
unlink /etc/localtime
Set the require time zone by using the below command ex. IST
ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
sync the time to server from NTP server of your choice ex. in.pool.ntp.org
/usr/sbin/ntpdate -u in.pool.ntp.org
To sync the server time and update the bios time at a time from the NTP server
/usr/sbin/ntpdate -u in.pool.ntp.org && hwclock --systohc
Steps to set Linux Server time to local time
Comments
Post a Comment