From 1ab327d3f691f8da00f72c14aac0e3ec7970da12 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 12 Feb 2016 10:01:35 +0100 Subject: [PATCH] fix exchange rate plugin: datetime.today --- plugins/exchange_rate/qt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/exchange_rate/qt.py b/plugins/exchange_rate/qt.py index 910fb98d..69749b89 100644 --- a/plugins/exchange_rate/qt.py +++ b/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]: