Removed an isinstance bug allowing datetimes to be converted to dates (thus stripping time data)