Monday, December 18, 2006

Changing TimeZone to IST

Changing TimeZone to IST

Solution:

1) Log in as root

2) # cd /usr/share/lib/zoneinfo

Create a file called asia.ind

3) # vi asia.ind

RULE IST min max - Apr 1 0:00 0:00 D

Zone Asia/IST 5:30 1:00 IST

4) # zic asia.ind

5) #TZ=Asia/IST

6) #export TZ

To make it permanent put the entry in profile and also modify the /etc/TIMEZONE file accordingly.

Output:

# date

Sat Dec 9 16:07:49 IST 2000

To see the GMT timing

# date -u

Sat Dec 9 10:38:06 GMT 2000

No comments: