Skip to content

Commit

Permalink
Merge pull request #412 from uluwatu-xyz/bug/cache_gettransactions_da…
Browse files Browse the repository at this point in the history
…te_utc

Bug: Explicitly set timezone on Cache gettransactions() date output
  • Loading branch information
mccwdev committed Jul 25, 2024
2 parents 48e9984 + 8a2c2e5 commit e2d6d42
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 e2d6d42

Please sign in to comment.