Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 700 Bytes

File metadata and controls

33 lines (21 loc) · 700 Bytes

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

Using symbolic link

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