diff --git a/C4/Utils/DataTables/Members.pm b/C4/Utils/DataTables/Members.pm index f4d043b23f..c3ba45bf0e 100644 --- a/C4/Utils/DataTables/Members.pm +++ b/C4/Utils/DataTables/Members.pm @@ -178,7 +178,7 @@ sub search { if( $patron->{dateexpiry} ) { # FIXME We should not format the date here, do it in template-side instead - $patron->{dateexpiry} = output_pref( { dt => dt_from_string( $patron->{dateexpiry}, 'iso'), dateonly => 1} ); + $patron->{dateexpiry} = output_pref( { dt => scalar dt_from_string( $patron->{dateexpiry}, 'iso'), dateonly => 1} ); } else { $patron->{dateexpiry} = ''; }