From: Colin Campbell Date: Mon, 20 Jun 2011 09:22:04 +0000 (+0100) Subject: Bug 5549 : Format Date in ILSDI::Services to include hhmm X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=9ffd92948b99b8440d9682c8b28e6be76e55a166;p=koha.git Bug 5549 : Format Date in ILSDI::Services to include hhmm --- 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];