fix bug of date time attribute type