File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2368,7 +2368,7 @@ def test_get_signed_policy_v4(self):
2368
2368
{"bucket" : bucket_name },
2369
2369
["starts-with" , "$Content-Type" , "text/pla" ],
2370
2370
],
2371
- expiration = datetime .datetime .now () + datetime .timedelta (hours = 1 ),
2371
+ expiration = datetime .datetime .utcnow () + datetime .timedelta (hours = 1 ),
2372
2372
fields = {"content-type" : "text/plain" },
2373
2373
)
2374
2374
with open (blob_name , "r" ) as f :
@@ -2395,7 +2395,7 @@ def test_get_signed_policy_v4_invalid_field(self):
2395
2395
{"bucket" : bucket_name },
2396
2396
["starts-with" , "$Content-Type" , "text/pla" ],
2397
2397
],
2398
- expiration = datetime .datetime .now () + datetime .timedelta (hours = 1 ),
2398
+ expiration = datetime .datetime .utcnow () + datetime .timedelta (hours = 1 ),
2399
2399
fields = {"x-goog-random" : "invalid_field" , "content-type" : "text/plain" },
2400
2400
)
2401
2401
with open (blob_name , "r" ) as f :
You can’t perform that action at this time.
0 commit comments