← Knowledge Base
DebianReference note1 min read · updated 2026-11-27

Set the time zone, time sync and locale

timedatectl for the time zone and NTP, and locale settings for correct language and characters.

timezonentplocale
timedatectl                              # current time, zone, NTP status
timedatectl list-timezones | grep Bucharest
sudo timedatectl set-timezone Europe/Bucharest
sudo timedatectl set-ntp true            # use the system's time sync service
locale                                   # current locale
sudo dpkg-reconfigure locales            # generate and choose locales (Debian/Ubuntu)
sudo localectl set-locale LANG=en_US.UTF-8

Servers are commonly left on UTC so that logs and cron times match across machines; convert when you read them. Wrong clocks break TLS, Kerberos, TOTP codes and log correlation, so keep time sync on.