Fix for setting DATETIME properties.