I now that the cron jobs are 1 hour off because
I have a cron job that runs at 7:30 am
and send me information around the time I come to work
yesterday and today it ran at 8:30 am.

logwatch does a call to localtime(time) but that comes back
with the correct time when I create my own perl program

I did issue a re-start to the cron.d
Tomorrow, I will now if everything works fine.

I had to add +1 to my hours when using PHP applications to display the time
because it also has problems unless you are using php5

Thanks,


:-)

On 3/12/07, Carl Lowenstein <[EMAIL PROTECTED]> wrote:

On 3/12/07, Néstor <[EMAIL PROTECTED]> wrote:
> All cron jobs are running an hour late.  I took the perl code
> from the logwatch where the time is displayed  and run it
> and the time was correct.
> Also my web pages using php date are displaying an hour
> less or pre DST time.
>

Search for more evidence:  On a Fedora Core 3 system that has been up
for 30 days:

$ sudo cat /var/lig/cron.1 /var/log/cron | grep daily | grep "Mar 1"
Mar 10 04:02:01 delta crond[29083]: (root) CMD (run-parts /etc/cron.daily)
Mar 10 04:02:09 delta anacron[29517]: Updated timestamp for job
`cron.daily' to 2007-03-10
Mar 11 05:02:01 delta crond[29477]: (root) CMD (run-parts /etc/cron.daily)
Mar 11 05:02:08 delta anacron[29914]: Updated timestamp for job
`cron.daily' to 2007-03-11
Mar 12 05:02:01 delta crond[13332]: (root) CMD (run-parts /etc/cron.daily)
Mar 12 05:02:06 delta anacron[13711]: Updated timestamp for job
`cron.daily' to 2007-03-12

On a Fedora Core 6 system that has been up about 1.5 days

$ sudo cat /var/log/cron.1 /var/log/cron | grep daily | grep "Mar 1"
Mar 10 04:02:01 neon crond[2904]: (root) CMD (run-parts /etc/cron.daily)
Mar 10 04:29:35 neon anacron[3327]: Updated timestamp for job
`cron.daily' to 2007-03-10
Mar 11 04:02:01 neon crond[4233]: (root) CMD (run-parts /etc/cron.daily)
Mar 11 04:29:36 neon anacron[4299]: Updated timestamp for job
`cron.daily' to 2007-03-11
Mar 12 04:02:01 neon crond[30973]: (root) CMD (run-parts /etc/cron.daily)
Mar 12 04:29:35 neon anacron[31029]: Updated timestamp for job
`cron.daily' to 2007-03-12

Possibly the cron daemon doesn't read /etc/localtime except when it is
started, so it still uses the old DST definition.  I'll have to try
that myself on system "delta".

It bothers me somewhat that I can't find the what configures logrotate
to do the "cron" logs.

    carl
--
    carl lowenstein         marine physical lab     u.c. san diego
                                                 [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to