fix: deprecation warning in get_iso_timestemp

This commit is contained in:
blessedcoolant
2025-04-23 23:44:25 +05:30
committed by psychedelicious
parent b3ee906749
commit f83592a052

View File

@@ -10,7 +10,7 @@ def get_timestamp() -> int:
def get_iso_timestamp() -> str:
return datetime.datetime.utcnow().isoformat()
return datetime.datetime.now(datetime.timezone.utc).isoformat()
def get_datetime_from_iso_timestamp(iso_timestamp: str) -> datetime.datetime: