Centos Change System Time Zone

 

To change system time zone run following commands:

$ cd /var/

$ ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime

In above command time zone is changed to IST.

To update it in hardware clock run following command:

$ hwclock --systohc

To view hardware time in hardware clock use following command:

$ hwclock --show

To change time in system and update it in hardware clock:

$ date --set="8 OCT 2012 18:44"

$ hwclock --systohc

-Sany

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s