From 1d62ea2c9ff7edc0bc1e202b8f5591939ee5735f Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Fri, 24 Jun 2011 11:05:54 +0100 Subject: [PATCH] Bug 5549 : Fix 'specify due date' If due date is set generate a proper DateTime object for issue procesing --- circ/circulation.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 4c8a52a7ad..26e20ae16b 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -4,6 +4,7 @@ # Copyright 2000-2002 Katipo Communications # copyright 2010 BibLibre +# Copyright 2011 PTFS-Europe Ltd. # # This file is part of Koha. # @@ -145,8 +146,9 @@ my $duedatespec_allow = C4::Context->preference('SpecifyDueDate'); if($duedatespec_allow){ if ($duedatespec) { if ($duedatespec =~ C4::Dates->regexp('syspref')) { - my $tempdate = C4::Dates->new($duedatespec); - $datedue = $tempdate; + $datedue = dt_from_string($duedatespec); + $datedue->set_hour(23); + $datedue->set_minute(59); } else { $invalidduedate = 1; $template->param(IMPOSSIBLE=>1, INVALID_DATE=>$duedatespec); -- 2.39.5