From 477875d309dbec5b0e517eb55880cff6d0919541 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Tue, 19 Aug 2014 10:49:13 -0400 Subject: [PATCH] fix timestamp method --- js/models/core/Wallet.js | 2 +- package.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 395f952d3..efba503dc 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -318,7 +318,7 @@ Wallet.prototype._onAddressBook = function(senderId, data, isInbound) { Wallet.prototype.updateTimestamp = function() { - this.lastTimestamp = microtime.now(); + this.lastTimestamp = new Date().getTime() * 1000; }; Wallet.prototype._onData = function(senderId, data, isInbound) { diff --git a/package.json b/package.json index fe84e9ba1..d68f10f9f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ }, "version": "0.4.7", "dependencies": { - "microtime": "^1.0.1", "mocha": "^1.18.2", "mocha-lcov-reporter": "0.0.1", "optimist": "^0.6.1",