Convert the UTC to IST in linux

So whenever I try to use the date command in the linux putty application. The time is shown in UTC. I was trying to figure out a way to convert it into IST. I searched the internet but could not find a satisfying solution. Any help would be appreciated. I did try the timedatectl command but no avail

1 Like

Ho @ghoshg401,

1.First search for the available time zone by the below command.

timedatectl list-timezones | grep -i Asia

2. Then unlink the current timezone

sudo unlink /etc/localtime

3.Now set the new timezone. The syntax for setting the new time zone is as below

sudo ln -s /usr/share/zoneinfo/[zone/timezone] /etc/localtime

For example

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

4. Now check the DateTime using date command.

date
Tue May 28 10:52:00 IST 2019
3 Likes

Thank you so much! It works.

1 Like