From 15613a02943218dd844fd617b4319d2e071dfd23 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Thu, 30 Oct 2014 14:57:09 +0200 Subject: [PATCH] Bug 13168 - "Today's checkouts" sort improperly because issuedate lacks seconds. TO REPLICATE: Prepare a bunch of Items (6+) for checking out, or have a set of barcodes ready for copy-pasting. Check-out those items quickly within one minute and observe that the sorting order is not always from the first checkout to the last. This is because the issuedate doesn't have seconds defined. AFTER THIS The bunch of Items is sorted properly. Tiny patch, works as expected. Passed QA script. Signed-off-by: Marc Veron Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- C4/Circulation.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 0eb086374f..f0879242f3 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1279,8 +1279,8 @@ sub AddIssue { $sth->execute( $borrower->{'borrowernumber'}, # borrowernumber $item->{'itemnumber'}, # itemnumber - $issuedate->strftime('%Y-%m-%d %H:%M:00'), # issuedate - $datedue->strftime('%Y-%m-%d %H:%M:00'), # date_due + $issuedate->strftime('%Y-%m-%d %H:%M:%S'), # issuedate + $datedue->strftime('%Y-%m-%d %H:%M:%S'), # date_due C4::Context->userenv->{'branch'}, # branchcode $onsite_checkout, $auto_renew ? 1 : 0 # automatic renewal -- 2.39.5