Operating System - HP-UX
1833027 Members
3711 Online
110049 Solutions
New Discussion

Timezone issue hp-ux 11.23

 
SOLVED
Go to solution
CevaOperator
Frequent Advisor

Timezone issue hp-ux 11.23

Hi All,

I've got a small issue configuring the correct time zone in hp-ux. Actually the problem is the following:

/etc/TIMEZONE => configured correctly with the appropriate settings

command "date" => shows the correct time.

when running script to show time manually, I've got the correct time.
when running script to show time via cron, I've got an hour delay.

Thats what I don't understand, NTPD is configured and the Timezone too. What should I look at to have cron telling me the correct time ?

3 REPLIES 3
Ramesh S
Esteemed Contributor
Solution

Re: Timezone issue hp-ux 11.23

Hi

You need to restart the cron rc script.

#/sbin/init.d/cron stop
#/sbin/init.d/cron start

Best Regards,
Ramesh
Dennis Handly
Acclaimed Contributor

Re: Timezone issue hp-ux 11.23

>Ramesh: You need to restart the cron rc script.

Right, if you've changed TIMEZONE or edited /usr/lib/tztab since you started cron, it will have this problem.
CevaOperator
Frequent Advisor

Re: Timezone issue hp-ux 11.23

Thanks Ramesh,

I should have thought of restarting the cron daemon.

This did the trick !!