fix date conversion to test pass