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

system time changing in solaris 8 (

Reply to Message Icon

Original Message
Name: srt
Date: April 29, 2003 at 03:35:33 Pacific
Subject: system time changing in solaris 8 (
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


Report Offensive Message For Removal


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

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


Report Offensive Follow Up For Removal

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

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.


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: system time changing in solaris 8 (

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge