Computing.Net > Forums > Solaris > system time changing in solaris 8 (

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

system time changing in solaris 8 (

Reply to Message Icon

Name: srt
Date: April 29, 2003 at 03:35:33 Pacific
OS: 8
CPU/Ram: p4 512
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: April 29, 2003 at 04:37:42 Pacific
Reply:

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


0

Response Number 2
Name: sooryudu
Date: April 30, 2003 at 02:38:09 Pacific
Reply:

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.


0

Response Number 3
Name: Gash
Date: May 13, 2003 at 00:58:50 Pacific
Reply:

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/asia

2)Edit /etc/TIMEZONE file and set the TZ variable to "Asia/Calcutta".

3. As root, execute the following:
#TZ=Asia/Calcutta
#export TZ


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: system time changing in solaris 8 (

How to install oracle 8i in solaris 8 www.computing.net/answers/solaris/how-to-install-oracle-8i-in-solaris-8/925.html

installing CD-RW in solaris 8 www.computing.net/answers/solaris/installing-cdrw-in-solaris-8/2904.html

Printer installation in solaris 8. www.computing.net/answers/solaris/printer-installation-in-solaris-8/3463.html