1752440 Members
5931 Online
108788 Solutions
New Discussion юеВ

Re: Time zone in HP-UX

 
SOLVED
Go to solution
Renjith Nair
Advisor

Time zone in HP-UX

hi all,

I have found in my /etc/TIMEZONE file that TZ=IST-5.30. And my database is also showing different time. Since i am from india, i think the TZ should be IST. do this cause any problem and can anybody suggest how to change the timezone.

thanks for all in advance
5 REPLIES 5
Shaikh Imran
Honored Contributor
Solution

Re: Time zone in HP-UX

To change the timezone system wide, execute the following:

1. set_parms timezone

2. When the menu appears, select the appropriate value.

If the output of the date command does not reflect the correct timezone, simply export the TZ (timezone) variable.
For IST Use

export TZ=IST-5:30


Regards,



I'll sleep when i am dead.
Shaikh Imran
Honored Contributor

Re: Time zone in HP-UX

Hi,


To change the timezone system wide, execute the following:

1. set_parms timezone

2. When the menu appears, select the appropriate value.

If the output of the date command does not reflect the correct timezone, simply export the TZ (timezone) variable.
For IST Use

export TZ=IST-5:30


Regards,



I'll sleep when i am dead.
Victor Fridyev
Honored Contributor

Re: Time zone in HP-UX

Hi,

You can edit file /etc/TIMEZONE in order to have in it needed timezone (TZ).
If you need to configure transition to daylight saving time and back edit the file /usr/lib/tztab.

After /etc/TIMEZONE update the computer should be rebooted

HTH
Entities are not to be multiplied beyond necessity - RTFM
Arunvijai_4
Honored Contributor

Re: Time zone in HP-UX

Hello,

You can take a look at this,

http://www.faqs.org/faqs/hp/hpux-faq/section-167.html

[5.13.1 How can I change the timezone?]

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Rajeev  Shukla
Honored Contributor

Re: Time zone in HP-UX

Your /etc/TIMEZONE files shows the correct entry for India. IST is for Indian Standard Time and -5:30 is the offset from GMT.
Dont take the literal meaning IST-5:30 as substracting 5:30 from IST.

To change the timezone either edit the /etc/TIMEZONE file and logback in for the change or run /sbin/set_parms timezone

Cheers
Rajeev