[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#473632: periodic jobs miss a day on daylight-saving time spring change



Package: apt
Version: 0.7.11
Severity: minor
Tags: patch

The periodic jobs (Apt::Periodic::*/cron.daily) miss a day on daylight-saving 
time spring change, because the current day's timestamp is compared to the 
previous day's and the job is skipped if the difference is less than 86400.
You can fix that by replacing in /etc/cron.daily/apt

    # intervall is in days,
    interval=$(($interval*60*60*24))

by

    # intervall is in days,
    interval=$(($interval*60*60*24-3600))

(Also check the spelling of "interval".)

I have a monitoring system that is check the time of the last apt-get update, 
and it gave me alarms today.



Reply to: