From 67c8ec9c7f004128cd915f6b20148beaaaca2c17 Mon Sep 17 00:00:00 2001 From: Giuseppe Tribulato Date: Fri, 13 Dec 2024 18:29:47 +0100 Subject: [PATCH] Resolve deprecation warning for datetime.utcnow --- e2e-tests/test_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/e2e-tests/test_client.py b/e2e-tests/test_client.py index e459ae7..f919997 100644 --- a/e2e-tests/test_client.py +++ b/e2e-tests/test_client.py @@ -1,4 +1,3 @@ -import time from datetime import datetime from pathlib import Path from string import ascii_lowercase @@ -23,7 +22,7 @@ def obj_name(): global uid_count uid_count += 1 - return f'test-{datetime.utcnow().strftime("%Y%m%d%H%M%S")}-{uid_count}' + return f'test-{datetime.now().strftime("%Y%m%d%H%M%S")}-{uid_count}' def names(obj_list):