Skip to content

Commit

Permalink
fix utc import
Browse files Browse the repository at this point in the history
  • Loading branch information
siyangqiu committed Jul 30, 2024
1 parent e591114 commit e9be92d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions agentops/helpers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pprint import pformat
from functools import wraps
import time
from datetime import datetime, UTC
from datetime import datetime, UTC, timezone
import json
import inspect
from typing import Union
Expand Down Expand Up @@ -49,7 +48,7 @@ def get_ISO_time():
Returns:
str: The current UTC time as a string in ISO 8601 format.
"""
return datetime.now(UTC).isoformat()
return datetime.now(timezone.utc).isoformat()


def is_jsonable(x):
Expand Down

0 comments on commit e9be92d

Please sign in to comment.