fix exchange rate plugin: datetime.today

This commit is contained in:
ThomasV 2016-02-12 10:01:35 +01:00
parent 25bf63e528
commit 1ab327d3f6
1 changed files with 2 additions and 1 deletions

View File

@ -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]: