timezone utc
This commit is contained in:
@ -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", "")
|
||||
|
||||
Reference in New Issue
Block a user