Skip to content

Commit

Permalink
Resolve deprecation warning for datetime.utcnow
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsystem committed Dec 13, 2024
1 parent 5f8b087 commit 67c8ec9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions e2e-tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import time
from datetime import datetime
from pathlib import Path
from string import ascii_lowercase
Expand All @@ -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):
Expand Down

0 comments on commit 67c8ec9

Please sign in to comment.