From e600418c6d0106388809a480bbfe5bf19f41dcc4 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 --- pos/register.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pos/register.pl b/pos/register.pl index 0949b2d074..b6874a2dac 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