Browse Source

fix exchange rate plugin: datetime.today

283
ThomasV 9 years ago
parent
commit
1ab327d3f6
  1. 3
      plugins/exchange_rate/qt.py

3
plugins/exchange_rate/qt.py

@ -1,3 +1,4 @@
import time
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from electrum_gui.qt.util import *
@ -209,7 +210,7 @@ class Plugin(FxPlugin, QObject):
return
tx_hash, conf, value, timestamp, balance = tx
if conf <= 0:
date = datetime.today()
date = timestamp_to_datetime(time.time())
else:
date = timestamp_to_datetime(timestamp)
for amount in [value, balance]:

Loading…
Cancel
Save