Re: syslog.log and date commands do not show the same time (561 Views)
Reply
Valued Contributor
NavyYard
Posts: 45
Registered: ‎05-16-2013
Message 1 of 4 (567 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

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,978
Registered: ‎03-06-2006
Message 2 of 4 (561 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.

Please use plain text.
Valued Contributor
NavyYard
Posts: 45
Registered: ‎05-16-2013
Message 3 of 4 (536 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

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,978
Registered: ‎03-06-2006
Message 4 of 4 (528 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.

Please use plain text.
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