Browse Source

Fix year 2038 problem in ob-watcher /fidelitybonds

master
chris-belcher 4 years ago
parent
commit
ce08a0cd85
No known key found for this signature in database
GPG Key ID: EF734EA677F31129
  1. 2
      scripts/obwatch/ob-watcher.py

2
scripts/obwatch/ob-watcher.py

@ -366,7 +366,7 @@ class OrderbookPageRequestHeader(http.server.SimpleHTTPRequestHandler):
+ elem(bond_data.maker_nick) + elem(bond_data.maker_nick)
+ elem(bintohex(bond_data.utxo[0]) + ":" + str(bond_data.utxo[1])) + elem(bintohex(bond_data.utxo[0]) + ":" + str(bond_data.utxo[1]))
+ elem(bond_value_str) + elem(bond_value_str)
+ elem(datetime.utcfromtimestamp(bond_data.locktime).strftime("%Y-%m-%d")) + elem((datetime.utcfromtimestamp(0) + timedelta(seconds=bond_data.locktime)).strftime("%Y-%m-%d"))
+ elem(utxo_value_str) + elem(utxo_value_str)
+ elem(conf_time_str) + elem(conf_time_str)
+ elem(str(bond_data.cert_expiry*RETARGET_INTERVAL)) + elem(str(bond_data.cert_expiry*RETARGET_INTERVAL))

Loading…
Cancel
Save