fix date-util implementation