Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change datetime.now to utcnow #251

Merged
merged 3 commits into from Aug 25, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/system/test_system.py
Expand Up @@ -2350,7 +2350,7 @@ def test_get_signed_policy_v4(self):
{"bucket": bucket_name},
["starts-with", "$Content-Type", "text/pla"],
],
expiration=datetime.datetime.now() + datetime.timedelta(hours=1),
expiration=datetime.datetime.utcnow() + datetime.timedelta(hours=1),
fields={"content-type": "text/plain"},
)
with open(blob_name, "r") as f:
Expand All @@ -2377,7 +2377,7 @@ def test_get_signed_policy_v4_invalid_field(self):
{"bucket": bucket_name},
["starts-with", "$Content-Type", "text/pla"],
],
expiration=datetime.datetime.now() + datetime.timedelta(hours=1),
expiration=datetime.datetime.utcnow() + datetime.timedelta(hours=1),
fields={"x-goog-random": "invalid_field", "content-type": "text/plain"},
)
with open(blob_name, "r") as f:
Expand Down