From 2fbaac98da391f029c920b4e7656ff0e09c3ae75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Thu, 3 Sep 2015 11:46:09 +0200 Subject: [PATCH] Bug 13813: Remove deprecated module C4::Dates from system Changes for QA comment #165 circ/transferstoreceive.pl 'iso' added circ/waitingreserves.pl 'iso' added members/printinvoice.pl 'iso' removed Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- circ/transferstoreceive.pl | 2 +- circ/waitingreserves.pl | 2 +- members/printinvoice.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/circ/transferstoreceive.pl b/circ/transferstoreceive.pl index 30bceaadda..b369822375 100755 --- a/circ/transferstoreceive.pl +++ b/circ/transferstoreceive.pl @@ -119,7 +119,7 @@ foreach my $br ( keys %$branches ) { $template->param( branchesloop => \@branchesloop, - show_date => output_pref({ dt => dt_from_string, dateonly => 1 }), + show_date => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }), TransfersMaxDaysWarning => C4::Context->preference('TransfersMaxDaysWarning'), latetransfers => $latetransfers ? 1 : 0, ); diff --git a/circ/waitingreserves.pl b/circ/waitingreserves.pl index a8d3fe4700..577a926ea2 100755 --- a/circ/waitingreserves.pl +++ b/circ/waitingreserves.pl @@ -157,7 +157,7 @@ $template->param( reservecount => $reservcount, overloop => \@overloop, overcount => $overcount, - show_date => output_pref({ dt => dt_from_string, dateonly => 1 }), + show_date => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }), ReservesMaxPickUpDelay => C4::Context->preference('ReservesMaxPickUpDelay') ); diff --git a/members/printinvoice.pl b/members/printinvoice.pl index 2175437e97..67bf11cbcf 100755 --- a/members/printinvoice.pl +++ b/members/printinvoice.pl @@ -89,7 +89,7 @@ for ( my $i = 0 ; $i < $numaccts ; $i++ ) { } my %row = ( - 'date' => output_pref({ dt => dt_from_string( $accts->[$i]{'date'}, 'iso' ), dateonly => 1 }), + 'date' => output_pref({ dt => dt_from_string( $accts->[$i]{'date'} ), dateonly => 1 }), 'amountcredit' => $accts->[$i]{'amountcredit'}, 'amountoutstandingcredit' => $accts->[$i]{'amountoutstandingcredit'}, 'toggle' => $accts->[$i]{'toggle'}, -- 2.39.5