use C4::Auth;
use C4::Branch; # GetBranches
use C4::Biblio; # GetBiblioItemData
-use C4::Dates qw/format_date/;
+use Koha::DateUtils;
my $input = new CGI;
my $itm = $input->param('itm');
biblioitemnumber => $bi,
homebranch => $homebranch,
holdingbranch => $holdingbranch,
- lastdate => $lastdate ? format_date($lastdate) : 0,
+ lastdate => $lastdate ? $lastdate : 0,
count => $count,
branchloop => $branchloop,
);
my ($date) = @_;
$date or return;
return (
- format_date($date),
+ output_pref({ dt => dt_from_string( $date ), dateonly => 1 }),
substr($date,11,5)
);
}
+[% USE KohaDates %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Circulation › Circulation statistics for [% title |html %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<tr><td>[% homebranch %]</td>
<td>[% holdingbranch %]</td>
- <td>[% IF ( lastdate ) %][% lastdate %][% ELSE %]Item has no transfer record[% END %]</td>
+ <td>[% IF ( lastdate ) %][% lastdate | $KohaDates %][% ELSE %]Item has no transfer record[% END %]</td>
<td>[% count %]</td>
</tr>
</table>