package at
tags 577017 + confirmed upstream
thanks

Hi,

"Stan Tobias" <st...@mailshack.com> writes:

> On Thursday `at 23:55 Fri' will schedule the job "tomorrow" (that's okay).
> But on Friday `at 23:55 Fri' will schedule the job on Friday _in a
> week's time_ (ie. *not* "today").  IMO this is wrong, and not in line
> with other established implementations:

I agree that this is unexpected and should be changed.

> I would suggest the following change:
> -                    add_date ((6 + $1 - exectm.tm_wday) %7 + 1, DAY);
> +                    add_date ((7 + $1 - exectm.tm_wday) %7, DAY);

With this patch at will also understand "0900 Sun" entered later on
Sunday as nine o'clock on this Sunday instead of next week.  Otherwise,
dates in the past are understood as meaning tomorrow/next month/next
year. I think giving a day of week should behave similar, but don't know
how other implementations handle this.

Regards,
Ansgar



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to