1846988 Members
3353 Online
110257 Solutions
New Discussion

Re: changing timezone

 
SOLVED
Go to solution
so.nimda
Super Advisor

changing timezone

Hi,

Just want to check if this is the correct way of changing timezone :

set_parms MET-1METDST

Then reboot the server. Is that all?

Issuing the "set_parms" command will automatically update "/etc/TIMEZONE", right? There's no need for me to manually edit this file, right?

Also, how do I check if the server indeed has "MET-1METDST"?

Thanks !
12 REPLIES 12
Jeeshan
Honored Contributor

Re: changing timezone

yup, seems ok.

you can check the time zone change using date command. It will show you current date,time and the time zone.
a warrior never quits
Dennis Handly
Acclaimed Contributor
Solution

Re: changing timezone

>set_parms MET-1METDST

This should be: set_parms timezone
Then you select Europe and the right zone.

>There's no need for me to manually edit this file

It is probably easier to edit the file than go through the GUI or TUI.
sujit kumar singh
Honored Contributor

Re: changing timezone

Hi,


U need to do take the help of the command as

#set_parms timezone

that will guide to set up a new time zone.

and yes if u do this using the #set_parms timezone , u need not edit the file /etc/TIMEZONE manually.


to check the current timezone set u can see the O/P s of the following commands.
#date
#cat /etc/TIMEZONE

\Regards
Sujit
so.nimda
Super Advisor

Re: changing timezone

Thanks, ahsan, Dennis & sujit for your replies.

@Dennis : can you elaborate on the editing of the file? Does it mean I vi the "/etc/TIMEZONE" and replace whatever timezone to MET-1METDST?

thanks
Dennis Handly
Acclaimed Contributor

Re: changing timezone

>can you elaborate on the editing of the file? Does it mean I vi the "/etc/TIMEZONE" and replace whatever timezone to MET-1METDST?

Yes, it is that easy, replace what's at that XXXX:
TZ=XXXX
export TZ
so.nimda
Super Advisor

Re: changing timezone

hi Dennis,

i should reboot the server after this, right?
sujit kumar singh
Honored Contributor

Re: changing timezone

Hi


when u do a chage in the timezone using the #set_parms timezone


u will be prompted for a system reboot to take place.


Regards
Sujit
sujit kumar singh
Honored Contributor

Re: changing timezone

Hi

if u edit the TZ even by using the set_parms or by editing the /etc/TIMEZONE, and do not make a reboot, the date shows the earlier TIMEZONE only.

as u can also see the timezone in the commands
#date
#set
#env

So i think a reboot is required for the settings to take effect.

Suggested way of doing the same is using the #set_parms timezone as u will not need to worry for editing the /etc/TIMEZONE and on reboot ur system will get a New Time Zone.


Regards
Sujit
sujit kumar singh
Honored Contributor

Re: changing timezone

Hi



Please find the following thread that will be useful.


Please see what the GURUS RAC and Stephenson have to say about the timezone.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=733432



Also this one

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=113057\

say what Rita says.

Regards
Sujit
Dennis Handly
Acclaimed Contributor

Re: changing timezone

>I should reboot the server after this, right?

Why do you need the timezone changed?
If is just you, you can source /etc/TIMEZONE:
. /etc/TIMEZONE

You only need to reboot if you want the timestamps in syslog.log to match your new timezone. There may be other demons that have the same need like cron & at.
so.nimda
Super Advisor

Re: changing timezone

Hi Dennis & sujit,

Thanks for your replies once again.

I am redeploying this server that's the reason I have to change the timezone.

Thanks for all the help !

cheers!
so.nimda
Super Advisor

Re: changing timezone

Queries answered