Ubuntu, change timezone BST, EST,GMT, EDT… to UTC

Ubuntu, change timezone BST, EST,GMT, EDT… to UTC

Show current you datetime and timezone:

date

Ubuntu, change BST, EST,GMT, EDT... to UTC

Method 1: Using timedatectl

sudo timedatectl set-timezone <time_zone>

Example: sudo timedatectl set-timezone UTC

Ubuntu, change BST, EST,GMT, EDT... to UTC

You can also change to timzone GMT, EST… by timedatectl command.

Method 2:

if you cannot use timedatectl command you can try with thi method:

sudo ln -sf /usr/share/zoneinfo/<time_zone> /etc/localtime

Example:

sudo ln -sf /usr/share/zoneinfo/EST /etc/localtime

Ubuntu, change timezone BST, EST,GMT, EDT... to UTC

 

sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime

Ubuntu, change timezone BST, EST,GMT, EDT... to UTC

Method 3: Using dpkg-reconfigure

sudo dpkg-reconfigure tzdata

Step 1: SelectGeographic area

Ubuntu, change timezone BST, EST,GMT, EDT... to UTC

Step 2: Select timezone by city

Ubuntu, change timezone BST, EST,GMT, EDT... to UTC

Result:

Ubuntu, change timezone BST, EST,GMT, EDT... to UTC

 

Okay, Done!

Reference:

https://askubuntu.com/…-change-time-zone-settings-from-the-command-line

stackjava.com