Browse Source

Alwasy store block time in UTC

master
R4SAS 5 years ago committed by R4SAS
parent
commit
12ccbafcf3
  1. 2
      bin/syncBlockchain.js

2
bin/syncBlockchain.js

@ -171,7 +171,7 @@ async function syncNextBlock(syncedHeight) {
})); }));
block.hashrate = JSON.parse(res_blockhr)['result']; block.hashrate = JSON.parse(res_blockhr)['result'];
block.time = moment(block.time*1000).format('YYYY-MM-DD HH:mm:ss'); block.time = moment(block.time*1000).utc().format('YYYY-MM-DD HH:mm:ss Z');
sync_sql = ` sync_sql = `
SET autocommit = 0; SET autocommit = 0;

Loading…
Cancel
Save