fix date output format bug