# Mise à l'heure



#### Renseigner le ou les serveurs ntp ([Renater](https://services.renater.fr/ntp/serveurs_francais))([NTP Pool](https://www.pool.ntp.org/zone/fr)):

```bash
sudo nano -c /etc/systemd/timesyncd.conf
```

```inf title="timesyncd.conf"
[Time]
Servers=ntp.midway.ovh 3.fr.pool.ntp.org
```



#### Activer le service de mise-à-jour automatique:

```bash
sudo timedatectl set-ntp true
```

#### Liste des fuseaux horaires:

```bash
timedatectl list-timezones
timedatectl list-timezones | grep Europe
```

#### Régler le fuseau horaire:

```bash
sudo timedatectl set-timezone Europe/Paris
```

#### Tester:

```bash
$ timedatectl

      Local time: mar. 2017-08-08 09:12:58 CEST
  Universal time: mar. 2017-08-08 07:12:58 UTC
        RTC time: n/a
       Time zone: Europe/Paris (CEST, +0200)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no
```

#### Pour vérifier que la synchro est active:

```bash
sudo service systemd-timesyncd status
```



#### Réglage manuel:

```bash
sudo timedatectl set-ntp false
sudo timedatectl set-time 'A:M:J HH:mm:ss'
```

