Skip to content

Commit 3465d08

Browse files
fix: change datetime.now to utcnow (#251)
Fixes #228 🦕 I think it's related to #244 issue so changed datetime.now() to datetime.utcnow()
1 parent 136c097 commit 3465d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/system/test_system.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@ def test_get_signed_policy_v4(self):
23682368
{"bucket": bucket_name},
23692369
["starts-with", "$Content-Type", "text/pla"],
23702370
],
2371-
expiration=datetime.datetime.now() + datetime.timedelta(hours=1),
2371+
expiration=datetime.datetime.utcnow() + datetime.timedelta(hours=1),
23722372
fields={"content-type": "text/plain"},
23732373
)
23742374
with open(blob_name, "r") as f:
@@ -2395,7 +2395,7 @@ def test_get_signed_policy_v4_invalid_field(self):
23952395
{"bucket": bucket_name},
23962396
["starts-with", "$Content-Type", "text/pla"],
23972397
],
2398-
expiration=datetime.datetime.now() + datetime.timedelta(hours=1),
2398+
expiration=datetime.datetime.utcnow() + datetime.timedelta(hours=1),
23992399
fields={"x-goog-random": "invalid_field", "content-type": "text/plain"},
24002400
)
24012401
with open(blob_name, "r") as f:

0 commit comments

Comments
 (0)