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", "")