fixed type attr in unitdate

changed from localType to type