

The current timezone can be quickly verified by checking the contents of cat /etc/timezoneĪlthough it would seem easy to simply update the content of that file, that won't be enough for the whole system. That's a one hour off from where I live as Switzerland's winter time is UTC+1 (note: Summer time is UTC+2). Now you can go for changes if you want to change the current time zone of your system. The output of the command shows the current timezone of the system.

To view the time zone follow the steps: Open your Linux terminal and run timedatectl command on it. The more modern method uses the timedatectl command, which is also used on today’s Linux systems to set the. It is available on all modern systemd-based Linux system. In this case we can see the time is 07:26:11 and the timezone is set to UTC. In this example, you can see the time zone is set to Central Standard Time, or UTC-6. Luckily a server's timezone is quickly adjusted using the tzdata package.įirst check the current time interpretation and time date Published on January 13th 2021 - Listed in LinuxĪlthough UTC is a great way to compare server logs across the globe, analyzing logs with an offset to the (human) local time can be difficult and annoying. timedatectl is a command line utility available as part of systemd that allows changing various settings of your system clock. Changing timezone in Debian and Ubuntu Linux using tzdata This article explains how to use timedatectl to change the timezone and enable automatic synchronization of the system clock with a remote server using the NTP (Network Time Protocol) on Linux.
