Timezone
Change the timezone
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.
Check the new configuration with the date
program:
Output
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.
You can check the new timezone configuration with the manager:
Timezone location
The timezone configuration is stored in two parallel locations:
/etc/localtime
/etc/timezone
Both files should be configure for the same timezone to have a consistent system.
Localtime
The /etc/localtime
file is a symbolic link to the currently configured timezone:
Output
This file contains all the information about the timezone specific time changes (daylight saving time, leaps seconds, ...). It's used by some system software like date
.
Timezone
The /etc/timezone
file contains the name of the time zone:
This file is used by some software to know the system timezone (software using glibc).