mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-14 11:15:49 +00:00
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) {
|
for (var i=0; i<transactions.length; ++i) {
|
||||||
var tx = transactions[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 txCreatorAddress = publicKeyToAddress(base64ToArray(tx.creatorPublicKey)); // currently base64 but likely to be base58 in the future
|
||||||
|
|
||||||
var row = '<tr><td>' + tx.type + '</td>' +
|
var row = '<tr><td>' + tx.type + '</td>' +
|
||||||
@ -118,7 +118,7 @@
|
|||||||
|
|
||||||
for (var i=0; i<transactions.length; ++i) {
|
for (var i=0; i<transactions.length; ++i) {
|
||||||
var tx = transactions[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 txCreatorAddress = publicKeyToAddress(base64ToArray(tx.creatorPublicKey)); // currently base64 but likely to be base58 in the future
|
||||||
|
|
||||||
var row = '<tr><td>' + tx.type + '</td>' +
|
var row = '<tr><td>' + tx.type + '</td>' +
|
||||||
@ -199,7 +199,7 @@
|
|||||||
var blockData = e.target.response;
|
var blockData = e.target.response;
|
||||||
|
|
||||||
var ourHeight = blockData.height;
|
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 blockGeneratorAddress = publicKeyToAddress(base64ToArray(blockData.generatorPublicKey)); // currently base64 but likely to be base58 in the future
|
||||||
|
|
||||||
var ourRow = document.createElement('TR');
|
var ourRow = document.createElement('TR');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user