To update the timezone, you have to change two files:
- /etc/localtime
- /etc/timezone
Localtime
Change the /etc/localtime
file to link to the correct timezone.
sudo unlink /etc/localtime
sudo ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
BASH
Check the new configuration with the date
program:
Output
Fri Oct 4 09:50:04 CEST 2019
BASH
Timezone
Change the /etc/timezone
files content to the selected timezone. The file content corresponds to the path of the zoneinfo file, relative to the /usr/share/zoneinfo
folder.
sudo echo "Europe/Paris" > /etc/timezone
BASH
You can check the new timezone configuration with the manager:
manager system time timezone
CODE