Bug 35788: Simplify code
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 15 Jan 2024 13:43:44 +0000 (10:43 -0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 15 Mar 2024 08:38:43 +0000 (09:38 +0100)
commit2b1469a8c68d596e1451262e3f8566f9b510c7de
treebcd9805d4fd3ca5a6d858bb263f7818738d11c16
parentfe2ae96cf31ed1d699f5825b00fd40c4442f8671
Bug 35788: Simplify code

We should not load DateUtils and deal with DateTime objects and
formatting when we can use the DB for it, using \'NOW()' should be
enough.

This patch makes that change. To test:

1. Apply the previous patches
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/Koha/Bookings.t
=> SUCCESS: Tests pass!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Bookings.pm