From c9a8ecad29b2021b81950b4086fa5cf003f7833a Mon Sep 17 00:00:00 2001 From: trojvn Date: Wed, 9 Jul 2025 17:41:23 +0300 Subject: [PATCH] timezone utc --- trc20wrapper/transactions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trc20wrapper/transactions.py b/trc20wrapper/transactions.py index ed9f815..126ef15 100644 --- a/trc20wrapper/transactions.py +++ b/trc20wrapper/transactions.py @@ -1,4 +1,4 @@ -from datetime import datetime +from datetime import datetime, timezone import aiohttp @@ -31,7 +31,7 @@ async def get_transaction_by_hash( dec = -1 * int(tx.get("token_info", {}).get("decimals", "6")) f = float(v[:dec] + "." + v[dec:]) time_ = datetime.fromtimestamp( - float(tx.get("block_timestamp", "")) / 1000 + float(tx.get("block_timestamp", "")) / 1000, timezone.utc ) from_ = tx.get("from", "") to = tx.get("to", "")