my $tidy_budget =
{ map { join( ' ', @columns ) =~ /$_/ ? ( $_ => $budget->{$_} ) : () }
keys %$budget };
delete $tidy_budget->{timestamp};
my $new_budget_id = AddBudget(
{
%$tidy_budget,
my $budget_cloned = C4::Budgets::GetBudgets({ budget_period_id => $budget_period_id_cloned });
my $test = $budget_cloned->[0]->{timestamp};
warn $test;
my $budget_time = Koha::DateUtils::dt_from_string($test);
my $local_time = Koha::DateUtils::dt_from_string();
warn $budget_time;
warn $local_time;
is(DateTime::compare($budget_time, $local_time), 0);
is(DateTime::compare($budget_time, $local_time), 0, "New budget got the right timestamp");
-