server time zone ubuntu code example Example 1: ubuntu check server timezone timedatectl Example 2: ubuntu server change timezone $ sudo dpkg-reconfigure tzdata