Join dotcomUNDERGROUND on Facebook Follow dotcomUNDERGROUND on Twitter Get updates by email dotcomUNDERGROUND RSS Feed
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



Join dotcomUNDERGROUND on Facebook Follow dotcomUNDERGROUND on Twitter Get updates by email dotcomUNDERGROUND RSS Feed
Get updates delivered to your email:  Enter email address:  

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

Sorry, comments for this entry are closed at this time.

Get Update Notifications

 Subscribe in a reader Or, subscribe via email:
Enter your email address:  
dotcomUNDERGROUND RSS Feed
Find entries :

Browse by Tags »