fix date representation