From 9ffd92948b99b8440d9682c8b28e6be76e55a166 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Mon, 20 Jun 2011 10:22:04 +0100 Subject: [PATCH] Bug 5549 : Format Date in ILSDI::Services to include hhmm --- C4/ILSDI/Services.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 067afd7a98..2940c00fea 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -33,6 +33,7 @@ use C4::ILSDI::Utility; use XML::Simple; use HTML::Entities; use CGI; +use DateTime; =head1 NAME @@ -558,7 +559,7 @@ sub RenewLoan { # Hashref building my $out; $out->{'renewals'} = $issue->{'renewals'}; - $out->{'date_due'} = $issue->{'date_due'}; + $out->{date_due} = $issue->{date_due}->strftime('%Y-%m-%d %H:%S'); $out->{'success'} = $renewal[0]; $out->{'error'} = $renewal[1]; -- 2.39.5