Copied some changes from rubinius for date in 1.9.