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

(-)a/Koha/OAI/Server/Identify.pm (-2 / +7 lines)
Lines 54-60 sub new { Link Here
54
# will be returned and we will report the fallback 0001-01-01.
54
# will be returned and we will report the fallback 0001-01-01.
55
sub _get_earliest_datestamp {
55
sub _get_earliest_datestamp {
56
    my $dbh = C4::Context->dbh;
56
    my $dbh = C4::Context->dbh;
57
    my ( $earliest ) = $dbh->selectrow_array("SELECT MIN(timestamp) AS earliest FROM biblio" );
57
    # We do not need to perform timezone conversion here, because the time zone
58
    # is set to UTC for the entire SQL session in Koha/OAI/Server/Repository.pm
59
    my $query = q{
60
        SELECT DATE_FORMAT(MIN(timestamp), '%Y-%m-%dT%H:%i:%SZ') AS earliest
61
        FROM biblio
62
    };
63
    my ( $earliest ) = $dbh->selectrow_array($query);
58
    return $earliest
64
    return $earliest
59
}
65
}
60
66
61
- 

Return to bug 21105