1834798 Members
2791 Online
110070 Solutions
New Discussion

HP UX Date confusion...

 
John O'Neill_6
Regular Advisor

HP UX Date confusion...

Hi All,

I've got two RX2660 boxes running 11.23 on itanium that we're hoping to migrate to shortly, on is for production, the other is for development/backup etc.

On he box that's to be production the date command looks a bit weird.

If i type in #date I get
Thu May 15 00:49:24 EST 2008

If i type in #date -u I get
Wed May 14 14:51:00 UTC 2008

this makes no sense. I echo the $TZ parameter and I get:

EST-10EDT

Now, on the other box.. both commands return:
Wed May 14 14:51:00 with either UTC or EST.

There's something wrong with the soon to be production box and I can't figure it out. It's not got any datbases or applications on it, but i'm worried about the O/S becomming corrupted.

How do i fix the time? Is it a BIOS/ROM issue?
Should I call a HP engineer out onsite to fix it? I've got stuff all idea how to fix this and don't know whether or not to just have the box nuked and reinstalld or what.

I am not a UNIX guru but am worried by things like this where UNIX could get corrupted and fail at some stage in future.

Any ideas?

-confused
6 REPLIES 6
Steven Schweda
Honored Contributor

Re: HP UX Date confusion...

I know nothing, but "EST-10EDT" looks goofy
to me. In the US of A, Eastern time normally
looks like "EST5EDT". You seem to be on
Eastern Singapore Time, or something else
inappropriate.

> Now, on the other box.. both commands return:
> Wed May 14 14:51:00 with either UTC or EST.

Huh?

Knowing nothing, I'd tend to run SAM, and
look for oddities in the date-time
configuration.
John O'Neill_6
Regular Advisor

Re: HP UX Date confusion...

I'm in Melbourne Australia.

Which is GMT+10 i believe.
Safarali
Valued Contributor

Re: HP UX Date confusion...

hi
UTC is for GMT
1. Use UTC time and type the date command using the -u option as in: date -u 09131445

2. Make sure TZ has the correct timezone for your location, then type the date command without -u.

The TZ value is set for every user as you login by the file called /etc/TIMEZONE. You can display this file with the cat command
Rasheed Tamton
Honored Contributor

Re: HP UX Date confusion...

Hi,
Your answer is in /usr/lib/tztab

more /usr/lib/tztab
will give you detailed information for you.

Australian Capital Territory : EST-10EDT

Australia is having different DST changes for different regions. tztab file has the information.

Melbourne is GMT+10. It is correct.

If you type date -u , you will get the output in UTC (GMT). That is correct behaviour.

echo $TZ gives what is defined in /etc/TIMEZONE

Regards
John O'Neill_6
Regular Advisor

Re: HP UX Date confusion...

Heya,

All Fixed, logged a support call with HP before comming back to forums, advice very similiar, they instructed me as to what to do with the date command to correct the system date/time.

Pretty simple stuff, no databases or applications are on the machine yet.

Will close and assign points.

Thanks. :)
Dennis Handly
Acclaimed Contributor

Re: HP UX Date confusion...

>If i type in #date I get
Thu May 15 00:49:24 EST 2008
>If i type in #date -u I get
Wed May 14 14:51:00 UTC 2008
>this makes no sense. I echo the $TZ parameter and I get: EST-10EDT

I'm curious why you think it doesn't make sense? (It would make more sense if we had trademarked EST and EDT so you couldn't use it down under. :-)
You have -10 so under EST you should be 10 hours ahead of UTC and you are in your fall season.

>on the other box.. both commands return:
Wed May 14 14:51:00 with either UTC or EST.

This is the system that is broken.