Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For various reasons my Linux box is running only at runlevel 3. I need to change the timezone of the box. How do I go about doing this?

share|improve this question

migrated from stackoverflow.com Oct 12 '09 at 11:47

This question came from our site for professional and enthusiast programmers.

    
What do time zone and runlevel have to do with each other? – wfaulk Oct 12 '09 at 16:45
    
runlevel 3 means there is no X. – Andrejs Cainikovs Oct 13 '09 at 6:29

On Debian & Ubuntu systems the proper way to do this is:

dpkg-reconfigure tzdata
share|improve this answer
# cd /etc
# mv /etc/localtime /etc/localtime.old
# ln -sf /usr/share/zoneinfo/Europe/London localtime

Zoneinfo directory structure may vary for some distros.

More info here and here.

share|improve this answer

You must log in to answer this question.