Bug 28481: (QA follow-up) Set date to 23:59:59
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 13 Dec 2021 09:36:33 +0000 (09:36 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 16 Dec 2021 22:13:51 +0000 (12:13 -1000)
This patch changes the fix from adding a day to setting the time to
23:59:59.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
pos/register.pl

index 0949b2d..b6874a2 100755 (executable)
@@ -79,7 +79,7 @@ else {
       : $last_cashup              ? $last_cashup->timestamp
       :                             '';
     my $end               = dt_from_string($transactions_range_to);
-    $end = $end->add(days => 1); # To should be 'inclusive'
+    $end = $end->set({ hour => 23, minute => 59, second => 59 }); # To should be 'inclusive'
 
     if ($transactions_range_from) {