Content-Length: 265704 | pFad | https://github.com/googleapis/python-cloud-core/commit/5310aef5b387aecd87d53acb7beb758dc9acb7e3

BE fix: fix regression with `google.cloud._helpers._NOW` (#266) · googleapis/python-cloud-core@5310aef · GitHub
Skip to content

Commit 5310aef

Browse files
authored
fix: fix regression with google.cloud._helpers._NOW (#266)
* fix: fix regression with * remove comment
1 parent 4c9254c commit 5310aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/_helpers/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
except ImportError: # pragma: NO COVER
3939
grpc = None
4040

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

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-cloud-core/commit/5310aef5b387aecd87d53acb7beb758dc9acb7e3

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy