From 7d5ce21a3528f086c80e03b00608d318f45b416a Mon Sep 17 00:00:00 2001 From: Javier Date: Fri, 25 Sep 2015 13:25:37 -0300 Subject: [PATCH] fix time message in proposal transaction --- src/js/controllers/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index f91e6940c..7f771febd 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -484,10 +484,16 @@ angular.module('copayApp.controllers').controller('indexController', function($r self.setPendingTxps = function(txps) { self.pendingTxProposalsCountForUs = 0; + var now = Math.floor(Date.now() / 1000); + lodash.each(txps, function(tx) { tx = txFormatService.processTx(tx); + // no future transactions... + if (tx.createdOn > now) + tx.createdOn = now; + var action = lodash.find(tx.actions, { copayerId: self.copayerId }); @@ -1158,4 +1164,4 @@ angular.module('copayApp.controllers').controller('indexController', function($r self.setFocusedWallet(); }); }); -}); +}); \ No newline at end of file