From 9f61b7eb9421d354d2609cefa0a6814e8a2ca478 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 18 Oct 2018 16:36:45 -0300 Subject: [PATCH] Bug 21600: Use str param instead of dt for output_pref Signed-off-by: Jonathan Druart Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens (cherry picked from commit 5b9cb7086e74e9a6ea7a4eaac7c5053b6727bb3e) Signed-off-by: Martin Renvoize --- Koha/REST/V1/Patrons.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm index 30548502a9..ea65155eb9 100644 --- a/Koha/REST/V1/Patrons.pm +++ b/Koha/REST/V1/Patrons.pm @@ -383,11 +383,11 @@ sub _to_model { } if ( exists $patron->{lastseen} ) { - $patron->{lastseen} = output_pref({ dt => dt_from_string( $patron->{lastseen} ), dateformat => 'sql' }); + $patron->{lastseen} = output_pref({ str => $patron->{lastseen}, dateformat => 'sql' }); } if ( exists $patron->{updated_on} ) { - $patron->{updated_on} = output_pref({ dt => dt_from_string( $patron->{updated_on} ), dateformat => 'sql' }); + $patron->{updated_on} = output_pref({ str => $patron->{updated_on}, dateformat => 'sql' }); } return $patron; -- 2.39.5