fix date pattern error