Operating System - HP-UX
1748211 Members
5015 Online
108759 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.