forked from Qortal/qortal
Replace toLocaleString with toUTCString in BlockExplorer due to Chrome bug
This commit is contained in:
parent
28c2cdaf5b
commit
df2a414cf4
@ -50,7 +50,7 @@
|
||||
|
||||
for (var i=0; i<transactions.length; ++i) {
|
||||
var tx = transactions[i];
|
||||
var txTimestamp = new Date(tx.timestamp).toLocaleString();
|
||||
var txTimestamp = new Date(tx.timestamp).toUTCString();
|
||||
var txCreatorAddress = publicKeyToAddress(base64ToArray(tx.creatorPublicKey)); // currently base64 but likely to be base58 in the future
|
||||
|
||||
var row = '<tr><td>' + tx.type + '</td>' +
|
||||
@ -118,7 +118,7 @@
|
||||
|
||||
for (var i=0; i<transactions.length; ++i) {
|
||||
var tx = transactions[i];
|
||||
var txTimestamp = new Date(tx.timestamp).toLocaleString();
|
||||
var txTimestamp = new Date(tx.timestamp).toUTCString();
|
||||
var txCreatorAddress = publicKeyToAddress(base64ToArray(tx.creatorPublicKey)); // currently base64 but likely to be base58 in the future
|
||||
|
||||
var row = '<tr><td>' + tx.type + '</td>' +
|
||||
@ -199,7 +199,7 @@
|
||||
var blockData = e.target.response;
|
||||
|
||||
var ourHeight = blockData.height;
|
||||
var blockTimestamp = new Date(blockData.timestamp).toLocaleString();
|
||||
var blockTimestamp = new Date(blockData.timestamp).toUTCString();
|
||||
var blockGeneratorAddress = publicKeyToAddress(base64ToArray(blockData.generatorPublicKey)); // currently base64 but likely to be base58 in the future
|
||||
|
||||
var ourRow = document.createElement('TR');
|
||||
|
Loading…
x
Reference in New Issue
Block a user