Skip to content

Commit

Permalink
fix: fix regression with google.cloud._helpers._NOW (#266)
Browse files Browse the repository at this point in the history
* fix: fix regression with

* remove comment
  • Loading branch information
parthea authored Dec 7, 2023
1 parent 4c9254c commit 5310aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/_helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
except ImportError: # pragma: NO COVER
grpc = None


_NOW = datetime.datetime.now(datetime.timezone.utc)
# `google.cloud._helpers._NOW` is deprecated
_NOW = datetime.datetime.utcnow
UTC = datetime.timezone.utc # Singleton instance to be used throughout.
_EPOCH = datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc)

Expand Down

0 comments on commit 5310aef

Please sign in to comment.