Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I am having solaris 8.I am from india. I want set the time for indian time, presently i am using SGT time.How to change time in solaris 8.I wamt to change time to IST.How do this?
Thanks in advance

You never change the actual time as the time is measured in seconds since Jan 1, 1970, GMT. You can alter how the time is displayed.
Have a look at /etc/TIMEZONE and /etc/default/init

Hi,
This is a problem faced by many Indian Solaris Administrators.
At the time of installation there isn't any option for setting the timezone to IST, we need to specify the timezone in terms of GMT+(ie.offset from GMT). That too GMT+5.30 Hrs is not possible, we need to either select GMT+5 or GMT+6. The actual problem starts here.
The only way is first install the OS and then do some changes. Like that of suggested by "David Perry".
But even for that to happen our "Indian Standard Time" zone information is not readily availble in the "/usr/share/lib/zoneinfo".
So follow the following steps.
1) As a root execute the following command.
#zic /usr/share/lib/zoneinfo/asia
This command(Zone Information Compiler)compiles the zone info present in the file called "asia" and creates a directory called "/usr/share/lib/zoneinfo/Asia" under which there are files which contain the zone info of different Asian zones. "Calcutta" is what we need.
2)Edit /etc/TIMEZONE file and set the TZ variable to "Asia/Calcutta" and reboot the system.Now if u issue the command date u should b able to see the date in IST.
Please acknowledge whether this has worked.
Thanks.

I checked sooryudu's procedure and it worked perfectly. Only you don't have to reboot for the IST to take effect. You can add step 3 to the above mentioned procedure to set the time to IST without rebooting the server:
1) As a root execute the following command.
#zic /usr/share/lib/zoneinfo/asia2)Edit /etc/TIMEZONE file and set the TZ variable to "Asia/Calcutta".
3. As root, execute the following:
#TZ=Asia/Calcutta
#export TZ

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |