@@ -, +, @@ # Failed test 'Identify - earliestDatestamp in the right format' # at t/db_dependent/OAI/Server.t line 182. # Compared $data->{"Identify"}{"earliestDatestamp"} # got : '2021-11-15T13:16:09Z' # expect : '2014-05-07T13:36:23Z' --- t/db_dependent/OAI/Server.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/t/db_dependent/OAI/Server.t +++ a/t/db_dependent/OAI/Server.t @@ -615,6 +615,7 @@ subtest 'Tests for timestamp handling' => sub { { GetRecord => $expected_no_items } ); t::lib::Mocks::mock_preference('KohaAdminEmailAddress', 'root@localhost'); + my ( $earliest_date ) = Koha::Biblios->search({}, {select => {min=> 'timestamp'}, as => 'earliest_date'})->get_column('earliest_date'); test_query( 'Identify - earliestDatestamp in the right format', { verb => 'Identify' }, @@ -623,7 +624,7 @@ subtest 'Tests for timestamp handling' => sub { baseURL => 'http://localhost', compression => 'gzip', deletedRecord => 'persistent', - earliestDatestamp => '2014-05-07T13:36:23Z', + earliestDatestamp => dt_from_string($earliest_date, 'sql')->strftime('%FT%TZ'), granularity => 'YYYY-MM-DDThh:mm:ssZ', protocolVersion => '2.0', repositoryName => 'My Library', --