From 84334821d4af5a42937d86b7941484f49107321d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch>
Date: Thu, 3 Sep 2015 11:46:09 +0200
Subject: [PATCH] [Follow-up] 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
---
 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 30bceaa..b369822 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 a8d3fe4..577a926 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 2175437..67bf11c 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'},
-- 
1.7.10.4