• Most COVID-19 rules have ended in New Zealand.
    • You must still isolate for 7 days if you have COVID-19.
    • You must wear a face mask in healthcare facilities, such as hospitals. International travellers will not need proof of COVID-19 vaccination.
    From 13 September 2022, to enter New Zealand, you do not need proof of vaccination.

Set systemd based Linux system timezone in one command

Andy

Administrator
Creative Team
User ID
1
Joined
7 Jan 2019
Messages
829
Reaction score
32
Points
28
Most modern distro such as RHEL/CentOS v.7.x+, Fedora Linux, Debian, Ubuntu, Arch Linux and others runs systemd, so you need to use the timedatectl utility. Here's how to easy it is to set the server timezone; we need one command:
Bash:
sudo timedatectl set-timezone 'Pacific/Auckland'

Hint: To see a list of all available time zones, use the command below:
Bash:
$ timedatectl list-timezones
$ timedatectl list-timezones | more
$ timedatectl list-timezones | grep -i Pacific
$ timedatectl list-timezones | grep Pacific/Auckland
 
 Short URL:
Top