Operating System - HP-UX
1833696 Members
3734 Online
110062 Solutions
New Discussion

Re: Timezone setup for Turkey

 
Pippo_9
Frequent Advisor

Timezone setup for Turkey

Hi everybody,

I would like to launch again the following thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=149239

Harry's suggestions don't help me.

Kind regards and thanks in advance!
Pedro
18 REPLIES 18
Elmar P. Kolkman
Honored Contributor

Re: Timezone setup for Turkey

I think it should be: EET-2EETDST
EET alone would not implement the DST correctly, which is probably your problem.
Every problem has at least one solution. Only some solutions are harder to find.
Pippo_9
Frequent Advisor

Re: Timezone setup for Turkey

Hello Elmar, How to implement EET-2EETDST in tztab?
Victor Fridyev
Honored Contributor

Re: Timezone setup for Turkey

0 3 28 03 2004 0-6 EETDST-3
0 3 31 10 2004 0-6 EET-2

This is correct for the current year. It seems to me, the common rule is the last Sunday of March and October

In this case the rule shoul be like this:

0 3 25-31 3 1983-2038 0 EETDST-3
0 3 25-31 10 1996-2038 0 EET-2

Regards
Entities are not to be multiplied beyond necessity - RTFM
ALPER ONEY
Advisor

Re: Timezone setup for Turkey

Hi
please insert the following entries numbered as 1 into the file /etc/profile and the others numbered 2 int to the file /etc/TIMEZONE
1-)/etc/profile
# Set the TIMEZONE

if [ -r /etc/TIMEZONE ]
then
. /etc/TIMEZONE
else
TZ=MST7MDT # change this for local time.
export TZ
fi
2-) cat /etc/TIMEZONE
TZ=EET-2EETDST
export TZ

Regards,
ALPER ONEY
SYBASE DBA
TAKASBANK INC, ISTANBUL
never ever give up.
Hoefnix
Honored Contributor

Re: Timezone setup for Turkey

Pedro,

It should already be in your tztab in /usr/lib/tztab
EET-2EETDST
0 3 25-31 3 1981-2038 0 EETDST-3
0 4 24-30 9 1981-2038 0 EET-2

To make it the default TZ edit it in /etc/TIMEZONE

You will need a reboot to force all the processes to use the new timezone

Also keep in mind that TZ is also set in /etc/profile and ~/.profile

HTH,
Peter
Pippo_9
Frequent Advisor

Re: Timezone setup for Turkey

ALPER and Peter,
I know that it is already in tztab and what to do in order to modify timezone now. But the problem is that is not happened automatically.

Victory indicated a possible solution.

ALPER,
in Turkey does your timezone change automatically? Or have you to do changes in tztab every march and october?

Kind regards,
Pedro
Elmar P. Kolkman
Honored Contributor

Re: Timezone setup for Turkey

Pedro,

You don't have to change the TIMEZONE file when you shift between summer- and wintertime, or Daylight saving time. The value EET-2EETDST means it will look into the tztab file to see if the first or the second part is currently the right one, depending on the current date. The tztab file will work until 2038.

Every problem has at least one solution. Only some solutions are harder to find.
Victor Fridyev
Honored Contributor

Re: Timezone setup for Turkey

Hi Pedro,
Elmar is right, there is the needed entry in /usr/lib/tztab, the file should not be updated.
You can see appropriate strings by:
grep EET /usr/lib/tztab.
In order to work according to this timezone variable TZ should be defined as EET-2EETDST

Regards
Entities are not to be multiplied beyond necessity - RTFM
ALPER ONEY
Advisor

Re: Timezone setup for Turkey

Hi FrontLine,
The answer for you questions is YES. The timezone changes automatically.
Here is the output of the command:
grep EET /usr/lib/tztab

EET-2EETDST
0 2 25-31 3 1981-2038 0 EETDST-3
0 1 25-31 10 1981-2038 0 EET-2

P.S I've been told that the command to set TIMEZONE is set_params used by the unix sa in our company.
HTH.
Regards

ALPER ONEY
SYBASE DBA
TAKASBANK INC, ISTANBUL

never ever give up.
Pippo_9
Frequent Advisor

Re: Timezone setup for Turkey

Hi again,

have you seen the last Alper's post?
Alper comes from Turkey and his /usr/lib/tztab looks the following:

EET-2EETDST
0 2 25-31 3 1981-2038 0 EETDST-3
0 1 25-31 10 1981-2038 0 EET-2

If I launch on a my system

# grep EET /usr/lib/tztab
EET-2EETDST
0 4 25-31 3 1981-2038 0 EETDST-3
0 3 25-31 10 1996-2038 0 EET-2

The second column is different!!!
2 for March and 1 for October!

My question is:
Alper, have you changed it in tztab in order to change date automatically? Or did you install a new patch about tztab for Turkey?
Please I would like to unfix this node! Then I will submit points!

Pedro
Elmar P. Kolkman
Honored Contributor

Re: Timezone setup for Turkey

The version on my 11i system is different too:

EET-2EETDST
0 4 25-31 3 1981-2038 0 EETDST-3
0 3 24-30 9 1981-1995 0 EET-2
0 3 25-31 10 1996-2038 0 EET-2

(It contains an extra line for the period 1981-1995)

The second column contains the hour on which the timezone should start (like cron). So, in Asper's case the timezone starts at 1 or 2 o'clock, while our versions start at 3 or 4 o'clock. I don't know which is correct for Turkey.

(Info like this can be found in 'man tztab')

Good luck, Elmar
Every problem has at least one solution. Only some solutions are harder to find.
ALPER ONEY
Advisor

Re: Timezone setup for Turkey

Hi Pedro,
I am not sure how it has been applied to our HP-UX 11i system because I am a sybase dba on HP-UX system, not an unix sa. The info gathered from the file /usr/lib/tztab is what we have currently for our HP-UX system. Maybe you can replace entries in your tztab file with mine for the section EET-2EETDST and find out if it helps.
Regards

ALPER ONEY
SYBASE DBA
TAKASBANK INC, ISTANBUL
never ever give up.
Lorenzo Facello
Valued Contributor

Re: Timezone setup for Turkey

Hi,
you've just tries
# set_parm timezone

Alper? isn't it?
Pippo_9
Frequent Advisor

Re: Timezone setup for Turkey

Elmar, I didn't insert the second line (that line has not importance anymore) but my tztab is equal to yours.
However you hit the point! That is exactly my doubt: what is the correct set for Turkey? I think that it is like ALPER's system but he cannot give me a sure answer (thanks anyway ALPER :-)

Anyway it seems to be the story:
A specific timezone doesn't exist in tztab for Turkey! When an HP-UX system is installed in Turkey tztab MUST be modified, otherwise time won't change correctly.

Lorenzo,
Alper told me that he is not a system administrator and then he doesn't know how that change was done.

If anybody can add or deny something he will be welcome! :-)

Kind regards,
Pedro
Victor Fridyev
Honored Contributor

Re: Timezone setup for Turkey

Hi,

According to the latest HPUX installation
EET-2EETDST
0 4 25-31 3 1981-2038 0 EETDST-3
0 3 24-30 9 1981-1995 0 EET-2
0 3 25-31 10 1996-2038 0 EET-2

This can be checked in : http://www.timeanddate.com/worldclock/results.html?query=istanbul
Entities are not to be multiplied beyond necessity - RTFM
ALPER ONEY
Advisor

Re: Timezone setup for Turkey

Hi Pedro,
I have consulted to our Unix sa for your problem and I got information from HP Turkey. The expert I kept in touch told me that although they have info about Turkey's timezone on installation guiedes supplied by HP, that information is not true. He also indicated that although Turkey and Finland is at the same zone, they must have different switch time for day light saving periods. So he suggest that you should manually change the lines as I offered on my previous posts.

Regards

ALPER ONEY
SYBASE DBA
TAKASBANK INC, ISTANBUL
never ever give up.
Pippo_9
Frequent Advisor

Re: Timezone setup for Turkey

Hi everybody!
Ok ALPER, thanks for news!
Last question for you, Alper (but if somebody else can answer me he will be welcome): I was informed that in these days in Turkey an official bulletin was published declarying that the hour for Daylight Saving Time is modified!!! From now on in March it will change at 1 o'clock (not anymore at 3 o'clock) and in October at 2 o'clock (not anymore at 4 o'clock).
Do you know it? Is it true?

Thanks a lot for info provided!
Pedro
Pippo_9
Frequent Advisor

Re: Timezone setup for Turkey

My post is based about the following information:

http://www.turkishpress.com/turkishpress/news.asp?ID=18717

I hope it can be useful for Turk System Administrators (of course for systems sited in Turkey). They should modify /usr/lib/tztab accordingly as follows (thanks ALPER):

EET-2EETDST
0 2 25-31 3 1981-2038 0 EETDST-3
#0 3 24-30 9 1981-1995 0 EET-2
0 1 25-31 10 1996-2038 0 EET-2

Kind regards,
Pedro