1836579 Members
1502 Online
110102 Solutions
New Discussion

TImezone problems

 
RNC
Frequent Advisor

TImezone problems

Hello all,

IS possible to change the TZ without reboot the system?, but no in the profile. I want to change it in /etc/TIMEZONE.
Where can I obtain the differents timezone for HP?, because I need the spanish timezone, and i don't know the mode to write it.

Thanks in advance
7 REPLIES 7
Giacomo TOTTI
Advisor

Re: TImezone problems

Hi,
try the set_parms command, it works fine...

regards

Giacomo
Robert-Jan Goossens
Honored Contributor

Re: TImezone problems

Hi RNC,

I believe you use the same TIMEZONE as in the Netherlands.

# cat /etc/TIMEZONE
TZ=MET-1METDST
export TZ

Middle European Timezone, Daylight Saving Time

Barcelona
http://www.timeanddate.com/worldclock/city.html?n=31

Amsterdam
http://www.timeanddate.com/worldclock/city.html?n=16

Hope this helps,
Robert-Jan
Joseph Loo
Honored Contributor

Re: TImezone problems

hi,

no need to reboot.

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 Example:

export TZ=EST5EDT

regards.
(p.s. please remember to assign points.)
what you do not see does not mean you should not believe
Robert-Jan Goossens
Honored Contributor

Re: TImezone problems

add on,

# set_parms timezone

can be used to change the timezone, a reboot is advised.
Leif Halvarsson_2
Honored Contributor

Re: TImezone problems

Hi,

As far as I know, it is not possible to change the timezone without rebooting.
Commands and files, related to timezone:

man tztab

/usr/lib/tztab

/sbin/set_parms timezone


You can find the different timezones
Joseph Loo
Honored Contributor

Re: TImezone problems

hi,

sorry, a reboot is required, u may have to schedule for downtime.

for more info on the TZ environment variable:

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066944960


regards.
what you do not see does not mean you should not believe
Cem Tugrul
Esteemed Contributor

Re: TImezone problems

i am fully agree with Robert...
Good Luck,
Our greatest duty in this life is to help others. And please, if you can't