Skip to content

Commit

Permalink
Bug: Explicitly set timezone on Cache gettransactions() date output
Browse files Browse the repository at this point in the history
  • Loading branch information
uluwatu-xyz committed Jul 24, 2024
1 parent 48e9984 commit 8a2c2e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bitcoinlib/services/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,10 @@ def gettransactions(self, address, after_txid='', limit=MAX_TRANSACTIONS):
txs.append(t)
if len(txs) >= limit:
break

for tx in txs:
tx.date = tx.date.replace(tzinfo=timezone.utc)

return txs
return []

Expand Down

0 comments on commit 8a2c2e5

Please sign in to comment.