Bug 21600: Use str param instead of dt for output_pref

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 5b9cb7086e)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2018-10-18 16:36:45 -03:00 committed by Martin Renvoize
parent dd2c6e4c69
commit 9f61b7eb94
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 2 additions and 2 deletions

View File

@ -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;