Operating System - HP-UX
1752564 Members
5240 Online
108788 Solutions
New Discussion юеВ

TIMEZONE setting in HP-UX

 
Mohamed Galal
Advisor

TIMEZONE setting in HP-UX

Dears,
I have HP-UX servers in my system. I found that the time was changed in the last 5th April from +2 to +3 although it should be changed in 23rd April according to Egyptian standard.
my question is:
- I need a procedure to change the setting to the correct setting?


here is my details:
===============
here is the contents of /usr/lib/tztab

# Egypt Time, Egypt Daylight Savings Time
EGT-2EGTDST
0 0 25-30 4 2000-2038 0 EGTDST-3
0 0 28-29 8 2000-2038 0 EGT-2
=========================
root% more /etc/TIMEZONE
TZ=EGT-2EGTDST
export TZ
=========================
root% date
Mon Apr 6 20:25:16 EGTDST 2009
root% date -u
Mon Apr 6 17:25:22 UTC 2009
=========================
root% perl dst.pl

Sun Apr 05 01:59:59 EGT 2009 --> Sun Apr 05 03:00:00 EGTDST 2009

Sun Oct 25 01:59:59 EGTDST 2009 --> Sun Oct 25 01:00:00 EGT 2009

=========================
4 REPLIES 4
Michael Steele_2
Honored Contributor

Re: TIMEZONE setting in HP-UX

See man page on command 'set_parms' and specifically 'set_parms timezone'. This interactive command will walk you through the question that you need to answer automajically.
Support Fatherhood - Stop Family Law
OldSchool
Honored Contributor

Re: TIMEZONE setting in HP-UX

"Sun Apr 05 01:59:59 EGT 2009 --> Sun Apr 05 03:00:00 EGTDST 2009"

doesn't appear to match the tztab file as presented... from what's there, I'd have expected the time change to occur on Sunday 4/26????

i thought egypt transitioned at midnight the last friday of the month (which doesn't seem to match the tztab either) but I've been unable to confirm that
TTr
Honored Contributor

Re: TIMEZONE setting in HP-UX

> 0 0 25-30 4 2000-2038 0 EGTDST-3
> 0 0 28-29 8 2000-2038 0 EGT-2
The week interval in both lines in not a full week and both lines are probably ignored. The "25-30" should be "24-30" and the "28-29" should be "25-31".
Fix those numbers and try the dst.pl again.
Dennis Handly
Acclaimed Contributor

Re: TIMEZONE setting in HP-UX