1847730 Members
3528 Online
110265 Solutions
New Discussion

Re: Change Timezone

 
DELETRE
New Member

Change Timezone

Hello,
I work in time domain and I have to change timezone in HP servers. The only solution I found is to change TZ in "/etc/TIMEZONE" file and restart the server.
Does anyone of you know another solution less hard or is it the only one.
Thank you for answer.
F.D.
7 REPLIES 7
Domenico_5
Respected Contributor

Re: Change Timezone

hi

try

set_parms date

bye
Jeff Schussele
Honored Contributor

Re: Change Timezone

Hi Deletre,

You can use the command
set_parms timezone for a server level change.

For users:

all local => set TZ in the /etc/profile file
individual => set TZ in the users's home dir .profile or .dtprofile
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Frederic Sevestre
Honored Contributor

Re: Change Timezone

Hi,

I am afraid you will have to reboot the server in order to all the processe to use the new timezone (cron, database....)

You can use :
# set_parms timezone

Regards,
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
A. Clay Stephenson
Acclaimed Contributor

Re: Change Timezone

Hi:

Actually, all you need to do is:
TZ=CST6CDT (or whatever desired TZ)
export TZ

The file you refer to only sets the system-wide default TZ but remember that TZ is simply a variable for a given process. All UNIX boxes in the known universe simply count seconds since Jan 1, 1970; TZ only determines how time is DISPLAYED. It is perfectly okay for multiple processes to have different TZ setttings.

Man environ for details.


If it ain't broke, I can fix that.
Helen French
Honored Contributor

Re: Change Timezone

Hi,

You can set the time zone and export it:

/etc/TIMEZONE:

TZ=EST5EDT
export TZ

Check it with env command. You can also use 'set_parms' too.

Read this document - how hp-ux determines the timezone:

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=61b2c95814366669fd/screen=ckiDisplayDocument?docId=200000055184936

HTH,
Shiju
Life is a promise, fulfill it!
Anil C. Sedha
Trusted Contributor

Re: Change Timezone

Hi,

What shiju says it right. For you i would suggest that since you are new to this, use the command

set_parms timezone.

You can also do this using SAM which would be very very helpful to you.

PS : Dont' forget to award points for people who try to help you. I have also started doing this for people who help me.


Regards,
Anil
If you need to learn, now is the best opportunity
Domenico_5
Respected Contributor

Re: Change Timezone

sorry to all


sometimes the hands gone more quickly than the minds.

all suggests after mine is correct set_parms timezone


sorry again