Fix Date/Timestamp handling

The patch fixes the Oracle DATE/TIMESTAMP handling.