From b099930174a3a220930f837e18c3bb314947efca Mon Sep 17 00:00:00 2001 From: Michael Wozniak Date: Mon, 31 Mar 2014 21:52:31 -0400 Subject: [PATCH] Update create current unix time update method to create current unix time to be windows compatible fix issue #640 --- plugins/exchange_rate.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py index 4658ae1..2a0c22a 100644 --- a/plugins/exchange_rate.py +++ b/plugins/exchange_rate.py @@ -6,6 +6,7 @@ import decimal import httplib import json import threading +import time import re from decimal import Decimal from electrum.plugins import BasePlugin @@ -421,7 +422,7 @@ class Plugin(BasePlugin): newtx = self.wallet.get_tx_history() v = newtx[[x[0] for x in newtx].index(str(item.data(0, Qt.UserRole).toPyObject()))][3] - tx_info = {'timestamp':int(datetime.datetime.now().strftime("%s")), 'value': v } + tx_info = {'timestamp':int(time.time()), 'value': v } pass tx_time = int(tx_info['timestamp']) if cur_exchange == "CoinDesk": -- 1.7.1