fix date-time attribute