View | Details | Raw Unified | Return to bug 21105
Collapse All | Expand All

(-)a/t/db_dependent/OAI/Server.t (-2 / +2 lines)
Lines 615-620 subtest 'Tests for timestamp handling' => sub { Link Here
615
        { GetRecord => $expected_no_items }
615
        { GetRecord => $expected_no_items }
616
    );
616
    );
617
    t::lib::Mocks::mock_preference('KohaAdminEmailAddress', 'root@localhost');
617
    t::lib::Mocks::mock_preference('KohaAdminEmailAddress', 'root@localhost');
618
    my ( $earliest_date ) = Koha::Biblios->search({}, {select => {min=> 'timestamp'}, as => 'earliest_date'})->get_column('earliest_date');
618
    test_query(
619
    test_query(
619
        'Identify - earliestDatestamp in the right format',
620
        'Identify - earliestDatestamp in the right format',
620
        { verb => 'Identify' },
621
        { verb => 'Identify' },
Lines 623-629 subtest 'Tests for timestamp handling' => sub { Link Here
623
                baseURL           => 'http://localhost',
624
                baseURL           => 'http://localhost',
624
                compression       => 'gzip',
625
                compression       => 'gzip',
625
                deletedRecord     => 'persistent',
626
                deletedRecord     => 'persistent',
626
                earliestDatestamp => '2014-05-07T13:36:23Z',
627
                earliestDatestamp => dt_from_string($earliest_date, 'sql')->strftime('%FT%TZ'),
627
                granularity       => 'YYYY-MM-DDThh:mm:ssZ',
628
                granularity       => 'YYYY-MM-DDThh:mm:ssZ',
628
                protocolVersion   => '2.0',
629
                protocolVersion   => '2.0',
629
                repositoryName    => 'My Library',
630
                repositoryName    => 'My Library',
630
- 

Return to bug 21105