From 5ca0d556beb2e5f8879ca14a7efbafd466f9a4e3 Mon Sep 17 00:00:00 2001 From: HemangChothani Date: Thu, 20 Aug 2020 12:56:38 +0530 Subject: [PATCH] fix: change datetime.now to utcnow --- tests/system/test_system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/system/test_system.py b/tests/system/test_system.py index c881c3da7..b642f71d0 100644 --- a/tests/system/test_system.py +++ b/tests/system/test_system.py @@ -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: @@ -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: