@@ -, +, @@ --- acqui/booksellers.pl | 6 ------ acqui/supplier.pl | 6 ------ .../prog/en/modules/acqui/booksellers.tt | 5 +++-- .../prog/en/modules/acqui/supplier.tt | 5 +++-- 4 files changed, 6 insertions(+), 16 deletions(-) --- a/acqui/booksellers.pl +++ a/acqui/booksellers.pl @@ -56,7 +56,6 @@ use C4::Biblio; use C4::Output; use CGI; -use C4::Dates qw/format_date/; use C4::Bookseller qw/ GetBookSellerFromId GetBookSeller /; use C4::Members qw/GetMember/; use C4::Context; @@ -120,11 +119,6 @@ for my $vendor (@suppliers) { ) ) ) { - for my $date_field (qw( creationdate closedate)) { - if ( $basket->{$date_field} ) { - $basket->{$date_field} = format_date( $basket->{$date_field} ); - } - } push @{$loop_basket}, $basket; } } --- a/acqui/supplier.pl +++ a/acqui/supplier.pl @@ -46,7 +46,6 @@ use C4::Auth; use C4::Contract qw/GetContract/; use C4::Biblio; use C4::Output; -use C4::Dates qw/format_date /; use CGI; use C4::Bookseller qw( GetBookSellerFromId DelBookseller ); @@ -79,11 +78,6 @@ if ( $op eq 'display' ) { my $contracts = GetContract( { booksellerid => $booksellerid } ); - for ( @{$contracts} ) { - $_->{contractstartdate} = format_date( $_->{contractstartdate} ); - $_->{contractenddate} = format_date( $_->{contractenddate} ); - } - $template->param( booksellerid => $booksellerid, name => $supplier->{'name'}, --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt @@ -1,3 +1,4 @@ +[% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] Koha › Search for vendor [% supplier %] [% INCLUDE 'doc-head-close.inc' %] @@ -97,9 +98,9 @@ [% loop_baske.firstname %] [% loop_baske.surname %] - [% loop_baske.creationdate %] + [% loop_baske.creationdate | $KohaDates %] [% IF ( loop_baske.closedate ) %] - closed on [% loop_baske.closedate %] + closed on [% loop_baske.closedate | $KohaDates %] View [% ELSE %] [% IF ( loop_baske.active ) %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -1,3 +1,4 @@ +[% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] Koha › Vendor [% bookselname %] [% INCLUDE 'doc-head-close.inc' %] @@ -217,8 +218,8 @@ if (f.company.value == "") { [% contract.contractname %] [% contract.contractdescription %] - [% contract.contractstartdate %] - [% contract.contractenddate %] + [% contract.contractstartdate | $KohaDates %] + [% contract.contractenddate | $KohaDates %] Edit Delete --