Operating System - HP-UX
1819802 Members
3163 Online
109607 Solutions
New Discussion юеВ

How change MET to METDST time?

 
SOLVED
Go to solution
Carme Torca
Super Advisor

How change MET to METDST time?

Hi,

I would like to know how to change the date to the Middle European Time, I have three machines with MET Time, and I would like to put the METDST.
I have look the /usr/lib/tztab, and this file it ok., but when I do echo $TZ, its show me
"MET-1MEST"...
What can I do???

Thank-you very much!!
Carmen
Users are not too bad ;-)
7 REPLIES 7
melvyn burnard
Honored Contributor
Solution

Re: How change MET to METDST time?

change your /etc/TIMEZONE file to reflect the correct TZ
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Tom Geudens
Honored Contributor

Re: How change MET to METDST time?

Hi,
You can also do this with
set_parms timezone

This requires a reboot though ...
Example :

set_parms timezone
_______________________________________________________________________________

The following procedure enables you to set the time zone.

Select your location from the following list:

1) North America or Hawaii

2) Central America

3) South America

4) Europe

5) Africa

6) Asia

7) Australia, New Zealand
_______________________________________________________________________________


Enter the number for your location (1-7) then press [Return] 4

_______________________________________________________________________________

Select your time zone from the following list:

1) Greenwich Mean Time
British Summer Time

2) Portuguese Winter Time
Portuguese Summer Time

3) Western European Time
Western European Daylight Time

4) Middle European Time
Middle European Daylight Time

5) Iceland time

6) Turkey, Finland, Romania,
Greece, Bulgaria

7) Western Russia (Moscow)

8) Unlisted time zone

9) Previous menu

_______________________________________________________________________________

Enter the number for your time zone (1 - 9), then press [Return] 4

_______________________________________________________________________________

You have selected:

Middle European Time/Daylight Time (MET-1METDST).
_______________________________________________________________________________

Is this correct?

Press [y] for yes or [n] for no, then press [Return] y
_______________________________________________________________________________


Your changes will not take effect until you reboot the system.

_______________________________________________________________________________

Do you want to reboot now?

Press [y] for yes or [n] for no, then press [Return] y

Regards,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
Mateja Bezjak
Respected Contributor

Re: How change MET to METDST time?

Hi,

export TZ=METDST

echo $TZ now shows METDST

Regards,
Mateja
Ceesjan van Hattum
Esteemed Contributor

Re: How change MET to METDST time?

above solutions are okay. but beware: if you have databases and/or production running on these machines; you might get problems with the datafiles.
Secondly, look for some running ntp-deamons (network time protocol). Timesynchronization might not a bad idea after all.

Regards,
Ceesjan
Clemens van Everdingen
Honored Contributor

Re: How change MET to METDST time?

Hi,

The best method is to use the option from Tom.
Also this implies a reboot at the end.
So you will be sure the time is set correctly for all applications/databases you might be running.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Carme Torca
Super Advisor

Re: How change MET to METDST time?

Finally I have change the /etc/TIMEZONE, but I will look for the ntp-deamons.
Thank-you very much to all!!!
Users are not too bad ;-)
Hartmut Lang
Trusted Contributor

Re: How change MET to METDST time?

If you are running HPUX11.11, and you want to use "set_parms" for setting timezone, look out for patch PHCO_22958:

"When using "set_parms timezone" it is not possible to select the "Middle European daylight saving time" option."

Hardy