There is no occurrence of Date::Calc in tools/cleanborrowers.pl
Created attachment 130334 [details] [review]
Bug 30042: Remove Date::Calc dependency in batch_anonymize.pl
This patch makes the script use the Koha::DateUtils tools instead.
k$ perl misc/cronjobs/batch_anonymise.pl --verbose --days 7
=> SUCCESS: You see (the date may vary):
Checkouts and holds before 2022-02-15 will be anonymised.
2. Apply this patch
3. Repeat 1
=> SUCCESS: Same output
4. Sign off :-D
Signed-off-by: Tomas Cohen Arazi <firstname.lastname@example.org>
(In reply to Jonathan Druart from comment #1)
> There is no occurrence of Date::Calc in tools/cleanborrowers.pl
Right, sorry for that. I read 'the cronjob' on bug 29843 and jumped to file this one so we don't forget, but didn't check if the file was the right one.
Why this script and not all other occurrences then?