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:
parent
dd2c6e4c69
commit
9f61b7eb94
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue