fix for datetimes before 1900