Fix the PDO error with 0000-00-00 date.