STACKJAVA

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

Method 1: Using timedatectl

sudo timedatectl set-timezone <time_zone>

Example: sudo timedatectl set-timezone 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

 

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

Method 3: Using dpkg-reconfigure

sudo dpkg-reconfigure tzdata

Step 1: SelectGeographic area

Step 2: Select timezone by city

Result:

 

Okay, Done!

Reference:

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