Configure Timezone

From LinodeWiki

Jump to: navigation, search

The tzdata package provides information about the timezones in the world. You should already be grabbing it from testing/unstable or volatile.

[edit] Debian

To correct the timezone in a Debian system use:

tzconfig

Another (maybe a purist) way to do this is:

 dpkg-reconfigure tzdata

which will ask you (depending on your debconf settings) for your time zone and configure everything (which actually copies the needed files to /etc/localtime)

[edit] CentOS

Update the ZONE parameter in /etc/sysconfig/clock then run tzdata-update.

ZONE="UTC"

[edit] Others

You can always use:

ln -sf /usr/share/zoneinfo/your/zone /etc/localtime
Personal tools