mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-06 12:52:04 +00:00
Fix Python 3.10 compatibility for UTC timezone usage
This commit is contained in:
1 parent
c25d1df78d
commit
882cd060fa
3 files changed
+9
-4
No files matched your search
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
from datetime import UTC, datetime, timedelta
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
@@ -365,7 +365,7 @@ def agent_get(
|
||||
)
|
||||
raise typer.Exit(1)
|
||||
|
||||
now = datetime.now(UTC)
|
||||
now = datetime.now(timezone.utc)
|
||||
payload = {
|
||||
"status": "ok",
|
||||
"fingerprint": fingerprint,
|
||||
|
||||
Reference in new issue
Block a user