From 12ccbafcf33f2a54da5d4b97be93481c4cc1d403 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Sun, 18 Aug 2019 23:17:49 +0000 Subject: [PATCH] Alwasy store block time in UTC --- bin/syncBlockchain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/syncBlockchain.js b/bin/syncBlockchain.js index 745cc5b..c2f7763 100644 --- a/bin/syncBlockchain.js +++ b/bin/syncBlockchain.js @@ -171,7 +171,7 @@ async function syncNextBlock(syncedHeight) { })); 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 = ` SET autocommit = 0;