Fixed handling of datetime objects in rows