@@ -, +, @@ # Failed test 'renew log successfully added' # at t/db_dependent/Circulation.t line 3024. # got: '4' # expected: '5' # Looks like you failed 1 test of 13. --- C4/Log.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/C4/Log.pm +++ a/C4/Log.pm @@ -77,9 +77,10 @@ sub logaction { $usernumber ||= 0; $interface //= C4::Context->interface; + my $now = dt_from_string; my $dbh = C4::Context->dbh; - my $sth=$dbh->prepare("Insert into action_logs (timestamp,user,module,action,object,info,interface) values (now(),?,?,?,?,?,?)"); - $sth->execute($usernumber,$modulename,$actionname,$objectnumber,$infos,$interface); + my $sth=$dbh->prepare("Insert into action_logs (timestamp,user,module,action,object,info,interface) values (?,?,?,?,?,?,?)"); + $sth->execute($now, $usernumber,$modulename,$actionname,$objectnumber,$infos,$interface); $sth->finish; my $logger = Koha::Logger->get( --