From c171c5c52262553f822fac1e89a7782a8dd217f7 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 13 Dec 2021 09:36:33 +0000 Subject: [PATCH] Bug 28481: (QA follow-up) Set date to 23:59:59 This patch changes the fix from adding a day to setting the time to 23:59:59. Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall (cherry picked from commit 18f8a43b71475d4d74c4c964eb65b6f23855197e) Signed-off-by: Andrew Fuerste-Henry --- pos/register.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pos/register.pl b/pos/register.pl index 8d116a9aa3..ee743aafcd 100755 --- a/pos/register.pl +++ b/pos/register.pl @@ -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) { -- 2.39.5