It is always a good practice to maintain the correct time on your Linux server or system and it can have the following advantages: maintain a timely operation of system tasks since most tasks in Linux are controlled by time.
Correct time for logging events and other information on the system and many more.
# timedatectl status
# timedatectl
OR
# timedatectl | grep Time
To view all available timezones, run the command below: # timedatectl list-timezones
# timedatectl list-timezones | grep Europe/
I
# timedatectl set-timezone “Europe/Roma”
# timedatectl set-timezone UTC
For who was wondering, Coordinated Universal Time or UTC is the primary time standard by which the world regulates clocks and time.
To set both date and time:
# timedatectl set-time '2022-09-27 09:24:50'
# timedatectl | grep local
Set your hardware clock to local timezone:
# timedatectl set-local-rtc 1
# timedatectl set-ntp true
# timedatectl set-ntp false