Bug 33837: Add datetime comparison to filter_by_last_update
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 15 May 2023 09:48:58 +0000 (09:48 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 11 Oct 2023 13:31:42 +0000 (10:31 -0300)
commit47288e23364b21e9dbef452ffbbf9c4678d6bcac
tree049bf70d8f667c9a0520630f8cca8ef1beec5266
parent0b5bf20c996a0bf324ad6ed5bced3161fd2d58dd
Bug 33837: Add datetime comparison to filter_by_last_update

Test plan:
Verify that filter_by_last_update still works as expected by
running cleanup_database.pl with --messages DAYS parameter.
Look at the oldest messages.message_date (or insert one).
Run with -days X where today - X is before that date.
Run with -days Y where today - Y is just after it.

Note: misc/cronjobs/cleanup_database.pl -confirm -messages -1 -v
will remove all messages including one you inserted just now.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Objects.pm