From 1b07012f030aa8067e19035f303d2d0045d332a9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 1 Mar 2016 09:52:31 +0000 Subject: [PATCH] Bug 14753: Use the KohaDates plugin to display dates Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- circ/returns.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index c4ec1001ae..9293572afd 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -588,7 +588,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { $ri{itemtitle} = $biblio->{'title'}; $ri{itemauthor} = $biblio->{'author'}; $ri{itemcallnumber} = $biblio->{'itemcallnumber'}; - $ri{dateaccessioned} = output_pref({ dt=>dt_from_string( $item->{dateaccessioned}, 'sql' ), dateonly => 1}); + $ri{dateaccessioned} = $item->{dateaccessioned}; $ri{itemtype} = $biblio->{'itemtype'}; $ri{itemnote} = $biblio->{'itemnotes'}; $ri{itemnotes_nonpublic} = $item->{'itemnotes_nonpublic'}; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 7b73118e52..b7f34400f2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -620,7 +620,7 @@ $(document).ready(function () { [% Branches.GetName( riloo.holdingbranch ) %] [% riloo.location %] [% riloo.itemcallnumber %] - [% riloo.dateaccessioned %] + [% riloo.dateaccessioned | $KohaDates %] [% ItemTypes.GetDescription( riloo.itemtype ) %] [% AuthorisedValues.GetByCode('CCODE', riloo.ccode) %] [% IF ( riloo.duedate ) %] -- 2.39.5