]> git.koha-community.org Git - koha.git/commit
Bug 30042: Remove Date::Calc dependency in batch_anonymize.pl
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Feb 2022 17:45:11 +0000 (14:45 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 31 Oct 2022 19:32:05 +0000 (19:32 +0000)
commit0bbf91bf33104cf89cbda99c5e332e68084be6f4
treef2dcfbdbd2f956ce1b21068eeebe9d519a43405f
parent191aad389e84fa60b4ef168b9fc97878cb6fcdfa
Bug 30042: Remove Date::Calc dependency in batch_anonymize.pl

This patch makes the script use the Koha::DateUtils tools instead.

To test:
1. Run:
   $ kshell
  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 <tomascohen@theke.io>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit caebb20cbb9f456750390d6494c568536dc1066c)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/cronjobs/batch_anonymise.pl