Skip to content

Commit 4397027

Browse files
fix: deprecation warning in get_iso_timestemp
1 parent 19a63ab commit 4397027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/app/util/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def get_timestamp() -> int:
1010

1111

1212
def get_iso_timestamp() -> str:
13-
return datetime.datetime.utcnow().isoformat()
13+
return datetime.datetime.now(datetime.timezone.utc).isoformat()
1414

1515

1616
def get_datetime_from_iso_timestamp(iso_timestamp: str) -> datetime.datetime:

0 commit comments

Comments
 (0)