Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

time zone set 2

Status
Not open for further replies.

bhawani123

IS-IT--Management
Nov 1, 2000
152
IN
Hello Guys,

I have been facing time zone problem in my ultra 10 solaris 2.7 system.
I use the netscape communicator for mail and download the
mail through pop3 server.
I am in india and I defined the TZ=GMT-5 in /etc/default/init file.so whenver I send a mail through
solaris system I get a 30 minutes difference.
Can anybody tell me how to define 30 minutes in TIMEZONE file?

Regd,
Ajay lohani
 
just try TZ=GMT-5:30

You can also use "zic" to compile you one TIMEZONE...

Regards,

Carlos Almeida,
 
Hello Carlos Almeida,

I checked the /usr/shae/lin/zoninfo directory.There is
no GMT-5:30 file.
Can you send me the syntax for zic compiler?

Regd,
Ajay lohani
 
Hello

You will find zic in /use/bin/zic.

Try "man zic" for more info.

Kind regards

Sharad Marathe
 
If you want to create you own TIMEZONE, with the GMT-5:30 file you can use the following:

# cd /usr/share/lib/zoneinfo
# echo 'Zone INDIA 5:30 - INST' | zic -

The name of the file will be INDIA, and use INST for (India Standard Time), to test you can use:
# export TZ=INDIA;date

if you need more options like daylight saving or other formats, you can use rules, check zic man pages.

Regards,

Carlos Almeida,
 
Thanks Carlos Almeida.

It is working fine.

Thanks & Regard's
Ajay lohani
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top