Problem: Having a MySQL date field with an undefined date 0000-00-00, it will be the same value in the output. Resulting in:
ERROR: date/time field value out of range: "0000-00-00"
Solution: It should be NULL instead, because that seems to be the Postgres standard for an undefined date.