syslog.log and date commands do not show the same time (772 Views)
Reply
Valued Contributor
NavyYard
Posts: 46
Registered: ‎05-16-2013
Message 1 of 4 (772 Views)

syslog.log and date commands do not show the same time

Hi!

 

I am running HP-UX 11.31 on i4 blades.

 

When I type date command, it shows Dec 18 12:00:17;  but when I type date command, it shows Dec 18:10:00:17

 

I have configured the system for mountain time so date command shows correct time but syslog.log still shows EST.

 

Any suggestions?

 

Thanks in advance.

 

v/r

Acclaimed Contributor
Dennis Handly
Posts: 25,296
Registered: ‎03-06-2006
Message 2 of 4 (766 Views)

Re: syslog.log and date commands do not show the same time

[ Edited ]

>I have configured the system for MST so date command shows correct time but syslog.log still shows EST.

 

You can change date by just exporting TZ.  And possibly editing /etc/TIMEZONE and logging in again.

But to change the time zone for syslog.log, you would need to restart the demons.

Which in practice may be not be so easy.

Valued Contributor
NavyYard
Posts: 46
Registered: ‎05-16-2013
Message 3 of 4 (741 Views)

Re: syslog.log and date commands do not show the same time

Thank You.

 

That was my thought too, because when I checked TIMEZONE file and TZ variable, it was set for correct time and zone. Only option was could see was to reboot.

 

I appreciate your input.

 

v/r

Acclaimed Contributor
Dennis Handly
Posts: 25,296
Registered: ‎03-06-2006
Message 4 of 4 (733 Views)

Re: syslog.log and date commands do not show the same time

>Only option was could see was to reboot.

 

If you are going to reboot anyway, you might want to experiment with restarting the demons.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.