Don't raise on out-of-range datetimes passed by a user
Merge pull request #18171 from greysteil/backport-out-of-range-fix

Don't raise on out-of-range datetimes passed by a user