Bugzilla – Attachment 128454 Details for
Bug 28481
Register details "Older transactions" search does not include the selected day in the "To" field in date range
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28481: (QA follow-up) Set date to 23:59:59
Bug-28481-QA-follow-up-Set-date-to-235959.patch (text/plain), 989 bytes, created by
Jonathan Druart
on 2021-12-13 12:03:47 UTC
(
hide
)
Description:
Bug 28481: (QA follow-up) Set date to 23:59:59
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-12-13 12:03:47 UTC
Size:
989 bytes
patch
obsolete
>From b80bd23803238a7bbc244510f4186c622c58b609 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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 <jonathan.druart@bugs.koha-community.org> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28481
:
128065
|
128090
|
128428
|
128429
|
128453
| 128454 |
128640