reset universal time ubuntu code example

Example 1: how to change time zone in ubuntu 18.04 server

sudo timedatectl set-timezone your_time_zone

Example 2: how to change time zone in ubuntu 18.04 server

$ sudo timedatectl set-timezone Europe/Bratislava

Example 3: how to change time zone in ubuntu 18.04 server

timedatectl list-timezones

Example 4: how to change time zone in ubuntu 18.04 server

$ timedatectl list-timezones | grep -i europe
Europe/Amsterdam
Europe/Andorra
Europe/Astrakhan
Europe/Athens
Europe/Belgrade
Europe/Berlin
Europe/Bratislava
Europe/Brussels
Europe/Bucharest
Europe/Budapest
Europe/Busingen
...
Europe/Zurich