https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31143 Aditya <adifbbk1@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adifbbk1@gmail.com --- Comment #89 from Aditya <adifbbk1@gmail.com> --- I see nobody's talking about the error when the below line gets executed my $invalid_dates = $rs->search( { $column => '0000-00-00' } )->count; This is throwing the error as below: DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Incorrect TIMESTAMP value: '0000-00-00' at ./fix_invalid_dates.pl line 65 I have made a quick fix for this. Please include to the next minor update (after the line:- my $schema = Koha::Database->new->schema;) if the similar is not implemented. # Disable strict mode for this session $schema->storage->dbh_do( sub { my ($storage, $dbh) = @_; $dbh->do("SET SESSION sql_mode = ''"); } ); -- You are receiving this mail because: You are watching all bug changes.