Introduction
In a computer you usually have two clocks, the system clock and the RTC (Real Time Clock or hardware clock). It's a good idea to use NTP (Network Time Protoco) to automatically update the system clock from the internet.
Install
Systemd-timesyncd is part of the systemd package and is already installed.
Configuration
First copy the default configuration to a new file.
# mkdir /etc/systemd/timesyncd.conf.d # cp /etc/systemd/timesyncd.conf /etc/systemd/timesyncd.conf.d/local.conf
It's best to use a local server to syncronize the time and you can find one on the Ntppool site. Example given if you live in France.
NTP=fr.pool.ntp.org europe.pool.ntp.org
Starting
First you must stop any other NTP daemon that may be running on your system. Mageia is by default using Chrony for NTP. After that you can run:
# systemctl enable systemd-timesyncd
You can use the timedatectl tool to check that it's working.
# timedatectl status
The RTC should always be kept in UTC. You can also get a detailed status report of the timesync.
# timedatectl timesync-status
Timezone
You must also set your timezone so that your clock will show local time. Check what timezones are available with this command:
# timedatectl list-timezones
And set your local timezone like this:
# timedatectl set-timezone Europe/Paris
Locale
To see what locales are available on your system you can use the localectl tool.
# localectl list-locales
A locale is distributed as a package in Mageia. Example given for installing french locale.
# dnf install locales-fr
And then you can use localectl to enable it.
# localectl set-locale fr_FR.UTF-8
Locale settings are stored in /etc/locale.conf and it's possible to edit that file manually too.