Home
 

Customer Support

Search for keywords:

Browse by category:

How do I change the timezone for my account?

Following this FAQ will change the timezone for your entire account, affecting your shell environment and all your scripts written in any language.

To do this, replace your /etc/localtime file with the appropriate timezone data file from /usr/share/zoneinfo. For example,
to set everything to Eastern Standard Time, get a shell prompt and replace your /etc/localtime with
/usr/share/zoneinfo/EST by typing the following 4 shell commands:

date
cd /etc
ln -sf /usr/share/zoneinfo/EST localtime
date
The first 'date' command will show you the current date/time before you change the timezone. The final 'date' command shows you current date/time in the timezone that you chose, which in this example is EST.

There are many timezone data files in the zoneinfo directory and you can use any of them that you wish. To see them all, do:

ls /usr/share/zoneinfo


Note that this FAQ previously stated to cp the zoneinfo, this is no longer considered correct for our hosting customers due to legislative actions that are causing changes to be made to these configurations.

See also the FAQs on this topic that relate to PHP and MySQL.

User-Contributed Notes

add a note
There are no user-contributed notes for this topic.

Related Questions:


How do I get ssh to authenticate me via public/private keypairs instead of by password?

What is a good SSH or Telnet program for me to use?

Do you support SCP?

Can I use gcc or a compiler?

How do I run a script in a restricted shell?

How can I make Pico my default editor instead of Vi?

Do I get a shell with my account?

What if I need a certain program installed in my bin?

Can I have Emacs?

Can I have Eggdrop or run some other bot or daemon?

How can I kill off my processes on the shell server?

Do I get root access?

Browse Categories:

Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales


Tiny Modwest Logo         Copyright 2000-2008 by Modwest, Inc.          About Us    |    Blog    |    Jobs    |    Web Design    |    Contact Us