Tuesday, August 21st, 2007

If you are running a dedicated server or vps without control panel or a control panel which doesnt provide an interface to change time zones (like HSPComplete VPS), you can easily change your timezone from ssh command prompt.

First browse to /usr/share/zoneinfo to find your city.

You can use SFTP to easily browse your server files.

Linux TimeZone - Dhaka

Here we find time zone for Dhaka to be located at /usr/share/zoneinfo/Asia/Dhaka

Now you need to SSH into your server and link /etc/localtime to your desired time zone file.

To set the server timezone to Dhaka we use the command:
ln -sf /usr/share/zoneinfo/Asia/Dhaka /etc/localtime

SSH TimeZone - Dhaka

We can check if it got properly set with the date command
Linux Date Command

Like this news? Share this with your friends:
Get updates delivered to your email:
Enter your email address:  


Tags: , , , , ,
Categories: Tech, Tips and Tricks, Tutorials

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus
Visitors come here looking for:

Get Update Notifications

 Subscribe in a reader Or, subscribe via email:
Enter your email address:  
Subscribe to dotcomUNDERGROUND RSS Feed Add to Google Reader or Homepage Add to Netvibes Add to Pageflakes Add to Yahoo! Add to Windows Live Alerts

dotcomUNDERGROUND RSS Feed