Fix datetime instantiation in elasticsearch backend's _to_python