In the error handling for datetime objects there is a possibility to run into a situation where `$errors` is an integer and not an array.