1752782 Members
6352 Online
108789 Solutions
New Discussion юеВ

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