handle dates before 1900

this fixes an error in the django test suite.