Dreamhost seems to think that we like PDT, despite being in the Midwest. How do I change the timezone?
A tool I found to be easier to use is dpkg-reconfigure. Use:
You will be given a multitude of choices, including some that are not included in tzselect.
The canonical answer (for which Ynhockey deserves credit) appears to be:
My original answer is below. I would simply have deleted this answer entirely but superuser.com doesn't allow accepted answers to be deleted.
This is presumably a bit late for the OP, and more intended for other searchers who arrive here.
If you need a non-interactive solution, try this solution from changing timezone with dpkg-reconfigure tzdata and debconf-set-selections
You can figure out your timezone by poking around in /usr/share/zoneinfo. In fact the dpkg-reconfigure command above copies the appropriate file from there to /etc/localtime. I used to just do that manually, and it seems to work fine.
Don't be too surprised if long running processes don't pick up the change. eg Apache log timestamps come to mind. Consider whether that matters, and hence whether you need to restart running processes or even reboot.
Unfortunately when using
the timezone information is not kept after reboot. You can verify your settings with
To make the change permanent you have to do following:
Debian 7 Wheezy
Debian 6 Squeeze
Yet another option is executing
it will create symlink