How to set easily date, time and time zone in Debian 10?
Feb 1, 2022
This mini-story aims to help you set the date, time and time zone in Debian 10 by using the command line : timedatectl
To change the date, use the following command,
DD: Day(1–31), MM: Month(1–12),
$ timedatectl set-time YYYY-MM-DD
To change the time,
hh: hours (0–24), mm: minutes(0–59), ss: secondes(0-59)
$ timedatectl set-time hh-mm-ss
To change the time zone;
$ timedatectl set-timezone region/city
To check your update, use again,
$ timedatectl
kdouibi@khaloud:~$ timedatectl
Local time: mar. 2022–02–01 10:19:10 CET
Universal time: mar. 2022–02–01 09:19:10 UTC
RTC time: mar. 2022–02–01 09:19:10
Time zone: Europe/Paris (CET, +0100)
System clock synchronized: yes