This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
The following commit(s) were added to refs/heads/trunk by this push:
new 2138196 Updated test so they run with every time zone
new 8d9e068 Merge pull request #1493 from
outscale-dev/osc_fixing_test_for_time_zone
2138196 is described below
commit 21381965241738375cc5d6d14398cae05abb6aeb
Author: Tio Gobin <[email protected]>
AuthorDate: Mon Sep 21 15:26:29 2020 +0200
Updated test so they run with every time zone
---
libcloud/test/common/test_osc.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcloud/test/common/test_osc.py b/libcloud/test/common/test_osc.py
index 8d7ca1b..f3f7c19 100644
--- a/libcloud/test/common/test_osc.py
+++ b/libcloud/test/common/test_osc.py
@@ -57,7 +57,7 @@ class OSCRequestSignerAlgorithmV4TestCase(LibcloudTestCase):
)
self.assertIn(
'Credential=my_key/{}/my_region/my_service/osc4_request'.format(
- datetime.now().strftime('%Y%m%d')
+ datetime.utcnow().strftime('%Y%m%d')
),
headers["Authorization"]
)