fix date format assertion