# Sincronización horaria

Algo muy importante es que nuestra hora este actualizada ya que puede afectar a actualizaciones de sistema u otras funciones. Para ello usaremos timedatectl que viene por defecto en Raspbian y NTP.

Lanzaremos el comando para ver nuestra configuación actual:

```
timedatectl status
```

Nos devolverá datos como la hora local, la universal el RTC configurado, la zona o si esta activada la sincronizacion NTP, mostrara algo como:

![](/files/-MlQ6m7w8_uai967nlk6)

En nuestro caso configuraremos nuestra zona a Europe/Madrid:

```
sudo timedatectl set-timezone Europe/Madrid
```

Instalaremos el servicio NTP:

```
sudo apt install ntp
```

Habilitaremos la sincronizacion:

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

Revisaremos que tengamos en nuestra configuración los servidores NTP habilitados

```
sudo nano /etc/systemd/timesyncd.conf
```

Y quitaremos la # inicial de la linea FallbackNTP

```
[Time]
#NTP=
FallbackNTP=0.us.pool.ntp.org 1.us.pool.ntp.org
```

Reiniciamos y con el primer comando verifiquemos que nuestra hora este actualizada!!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://klipper.3dwork.io/klipper/empezamos/sincronizacion-horaria.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
