@@ -, +, @@ --- C4/Search/History.pm | 2 +- t/Search/History.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/C4/Search/History.pm +++ a/C4/Search/History.pm @@ -55,7 +55,7 @@ sub build_new_cookie_value { query_cgi => $query_cgi, total => "$total", type => $type, - time => output_pref( dt_from_string(), 'iso' ), + time => output_pref({ dt => dt_from_string(), dateformat => 'iso' }), }; shift @recent_searches if (@recent_searches > 15); --- a/t/Search/History.t +++ a/t/Search/History.t @@ -23,7 +23,7 @@ my $first_search = C4::Search::History::build_new_cookie_value({ type => "biblio", }); -my $date = output_pref( dt_from_string(), 'iso' ); +my $date = output_pref({ dt => dt_from_string(), dateformat => 'iso' }); my @values = @{ C4::Search::History::get_from_cookie({cookie => $first_search}) }; my $values = shift @values; --