modify attribute name and fix datetime