For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set Different Time Zone

We can change time zone temporarily by using TZ Environment Variable but for permanent change we can use following ways to set different time zone in linux.

Using timedatectl

sudo timedatectl set-timezone {TIME_ZONE}

Example

sudo timedatectl set-timezone Asia/Kolkata

Firstly, we to remove current symbolic link by -

sudo rm -rf /etc/localtime

Then subtitute your time zone in following command

sudo ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime

Verify it by running date command

Source: Linuxize

Last updated