1831698 Members
2144 Online
110029 Solutions
New Discussion

Timezone

 
Tony Chiu
Advisor

Timezone

Hi all,

I turned my system to trusted mode and found that the following message displayed at login:-
*********************************************
HP-UX hp02 B.10.20 U 9000/856 (ttyp5)

login: usertst4
Password:
Last successful login for usertst4: Fri Aug 11 07:11:09 GMT 2000 on ttyp4
Last unsuccessful login for usertst4: Fri Aug 11 07:10:52 GMT 2000 on ttyp4
*********************************************
My system timezone is set to EAT-8 and the output of date command is
Fri Aug 11 16:04:44 EAT 2000

My question is that why the successful/unsuccessful login time displayed is GMT instead local time (GMT+8). Anything missing in my setup?

Tony
10 REPLIES 10
Tony Chiu
Advisor

Re: Timezone

$ cat /etc/TIMEZONE
TZ=EAT-8
export TZ
Andy Monks
Honored Contributor

Re: Timezone

Hi Tony,

Check your /etc/TIMEZONE file is set correctly.
Andy Monks
Honored Contributor

Re: Timezone

Hmmm, strange then. I tried it on a machine which is set to EDT and the messages all came up with EDT (ok EST).

Therefore, it could be a change to pam. Do you have PHCO_20104 or 21833 loaded?
Andy Monks
Honored Contributor

Re: Timezone

It was fixed in PHCO_13808, and the current is PHCO_21833.
Tony Chiu
Advisor

Re: Timezone

Hi Andy,

The patch applies to HPUX11 but I'm using HPUX10.20.
Andy Monks
Honored Contributor

Re: Timezone

Looks like I should have read your message better.

There doesn't appear to be a 10.20 version of this patch. The service request also only mentions an 11 fix.

Assuming you've got a support contract you could log a call with your local response centre and request a backport of the patch. It might then get backported.

The only other solutions are upgrade to 11 or live with the problem (which I agree is a annoying).
Tony Chiu
Advisor

Re: Timezone

Hi Andy,

Thanks. BTW, what is 'backport patch'.
Andy Monks
Honored Contributor

Re: Timezone

it's where they take a patch and put one/some/all of the fixes in it, to another version of hp-ux. So, in this case, they take the 11 fix and put those changes back into 10.20.
Rita C Workman
Honored Contributor

Re: Timezone

I had a similar problem with TIMEZONE...when I ran a date command, it seemed fine.
When I checked in SAM the timezone was right....
I discovered that whenever a TIMEZONE has been changed (and there was a change to your system..) you have to reboot the box. It is best to change the timezone using the set_parm command. And after you have to reboot the box.
Hope this helps,
Robert Lee_2
New Member

Re: Timezone

What bug is patch PHCO_20104 said to fix?