how to set timezone of linux server by putty


Generally when a server is setup, the time set on the server is as per the timezone of the area where the datacentre is located. But for a web hosting uk server the clients are spread all over the world with different timezones. I will recommend to set the the UTC timezone.

The files related to various timezones are located at /usr/share/zoneinfo on the server. To set the timezone to UTC:

Edit the file

# vi /etc/sysconfig/clock

change the line ‘UTC=false’ to ‘UTC=true’.

Now set the local timezone to UTC

# ln -s /usr/share/zoneinfo/UTC /etc/localtime

Check the time by

# date

The above was an example to set the timezone to UTC. You can create symlink for any timezone by using above method to set your desired timezone.

This link is also very USEFUL
I found it is great..its works for me…

http://www.cyberciti.biz/faq/howto-linux-unix-change-setup-timezone-tz-variable/

Share on Facebook




About Pragnesh Karia

Pragnesh Karia, Open Source Enthusiast, Software Professional, Software Developer, Technical Lead ,Magento, Joomla ,Joomla LMS , Moodel LMS ,PHP ,Mysql, Ajax, Javascript, Jquery, Linux, Fan of Open Sources , Annet Technologies , SEO Analyst , Mootools