[SunHELP] Cron running one hour too early?

Nicholas Dronen sunhelp at sunhelp.org
Thu Mar 29 15:57:01 CST 2001


On Thu, Mar 29, 2001 at 11:26:54PM +0200, Maarten Deen wrote:
> Hi,
> 
> I've got a crontab running at 0:01 which requires my sun to dial out. 
> The crontab is executing at 23:01, which is obviously one hour too 
> early. First I thought it had something to do with DST, but I 
> remembered that some time ago I switched the timezone from MET 
> to WET (which sets the time one hour later). This seems match with 
> the messages in the dialer log (which runs on a different machine).
> 
> I've changed the timezone by editing /etc/default/init. After that, the 
> time displayes correctly, but apparantly the machine does not use 
> the time correctly. Is this normal? Do I really have to reboot to make 
> the system use the correct time?


I forget whether recylcing cron works to make timezone changes
take effect on Solaris, but you could try:

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



More information about the SunHELP mailing list