diff --git a/google/cloud/firestore_v1/base_document.py b/google/cloud/firestore_v1/base_document.py index 9e15b108c2..f59d4a1993 100644 --- a/google/cloud/firestore_v1/base_document.py +++ b/google/cloud/firestore_v1/base_document.py @@ -368,8 +368,8 @@ def __eq__(self, other): return self._reference == other._reference and self._data == other._data def __hash__(self): - seconds = int(self.update_time.timestamp()) - nanos = self.update_time.nanosecond + seconds = int(self.update_time.seconds) + nanos = self.update_time.nanos return hash(self._reference) + hash(seconds) + hash(nanos) @property