diff --git a/t/db_dependent/OAI/Server.t b/t/db_dependent/OAI/Server.t index 5da76b4f36..6f6cc378f8 100755 --- a/t/db_dependent/OAI/Server.t +++ b/t/db_dependent/OAI/Server.t @@ -611,7 +611,7 @@ subtest 'Tests for timestamp handling' => sub { my $utc_datetime = dt_from_string(undef, undef, 'UTC'); my $utc_timestamp = $utc_datetime->ymd . 'T' . $utc_datetime->hms . 'Z'; - my $timestamp = dt_from_string(undef, 'sql'); + my $timestamp = $utc_datetime; # Test a bib with one item my $biblio1 = $builder->build_sample_biblio; @@ -711,7 +711,7 @@ subtest 'Tests for timestamp handling' => sub { $utc_datetime = dt_from_string(undef, undef, 'UTC'); $utc_timestamp = $utc_datetime->ymd . 'T' . $utc_datetime->hms . 'Z'; - $timestamp = dt_from_string(undef, 'sql'); + $timestamp = $utc_datetime; my $item2 = $builder->build_sample_item( { @@ -749,7 +749,7 @@ subtest 'Tests for timestamp handling' => sub { set_relative_time(10); $utc_datetime = dt_from_string(undef, undef, 'UTC'); $utc_timestamp= $utc_datetime->ymd . 'T' . $utc_datetime->hms . 'Z'; - $timestamp = dt_from_string(undef, 'sql'); + $timestamp = $utc_datetime; $sth_metadata->execute($timestamp, $biblio1->biblionumber);