Fix datetimes in ODBC/Firebird (merge identical code left after a870aa85e)