fix date in view