use utc for date field

This commit is contained in:
Victor Shyba 2020-04-21 02:22:45 -03:00
parent 51f573f1ea
commit 37129bce58

View file

@ -929,7 +929,7 @@ class Ledger(metaclass=LedgerRegistry):
item = {
'txid': tx.id,
'timestamp': ts,
'date': datetime.fromtimestamp(ts).isoformat(' ')[:-3] if tx.height > 0 else None,
'date': datetime.utcfromtimestamp(ts).isoformat(' ')[:-3] if tx.height > 0 else None,
'confirmations': (headers.height+1) - tx.height if tx.height > 0 else 0,
'claim_info': [],
'update_info': [],