Bug 1046213: datetime_from() generates wrong dates if year < 1901