fix date format bug and invite model spec