HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

TIMEZONE setting in HP-UX

 

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
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.

Re: TIMEZONE setting in HP-UX