Package: at
Version: 3.1.10
Followup-For: Bug #404965
In parsetime.y:
if (time_only)
{
if ((exectm.tm_hour < currtm.tm_hour) ||
((exectm.tm_hour == currtm.tm_hour &&
exectm.tm_min <= currtm.tm_min)))
exectm.tm_mday++;
}
else if (!yearspec) {
if ((exectm.tm_mon < currtm.tm_mon) ||
((exectm.tm_mon == currtm.tm_mon &&
exectm.tm_mday < currtm.tm_mday)))
exectm.tm_year++;
}
This bit of code gives the year an increment. However if add_date() is
used, the year has already been incremented.
This means that any timespec that uses add_date() will fail if the
execution date is in a different year to the current date. ie:
tomorrow
<weekday>
next <weekday>
next hour/day/week/month/year
+ X minute/hour/day/week/month/year
A workaround would be to set yearspec to true when add_date() is called.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]