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