Skip to content

Configure the timezone

Interactive configuration

You can use the most common way using interactive UI:

sudo dpkg-reconfigure tzdata

Some menu in raspi-config allow you to launch dpkg-reconfigure

Using a bash script

Timezone are define on disk, next command allow you to show all Timezones.

tree /usr/share/zoneinfo/

Configuration is stored in /etc/localtime witch is a link of one Timezone file.

ls -la --color /etc/localtime

So what you need to do is to create a link to your Timezone file and run dpkg-reconfigure

sudo ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime
sudo dpkg-reconfigure -f noninteractive tzdata