From fa1b1570078745c569fe9a472a584d5359a1f844 Mon Sep 17 00:00:00 2001 From: Abhikalp Arya Date: Mon, 28 Feb 2022 17:00:13 +0530 Subject: [PATCH 1/2] Update etherscan.js --- AbhikalpArya/scripts/etherscan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AbhikalpArya/scripts/etherscan.js b/AbhikalpArya/scripts/etherscan.js index 85755ad..6a8d392 100644 --- a/AbhikalpArya/scripts/etherscan.js +++ b/AbhikalpArya/scripts/etherscan.js @@ -42,11 +42,11 @@ web3.eth.getBlockTransactionCount("latest").then((res) => { // Task 4 web3.eth.getGasPrice().then((res) => { const currentDate = new Date(); - let timestamp = currentDate.getTime(); + let timestamp = currentDate.toLocaleTimeString(); let data = JSON.stringify([res, timestamp]); // In JavaScript, a time stamp is the number of milliseconds that have passed since January 1, 1970. fs.writeFile('../AbhikalpArya/Data/data4.json', data, function(e) { if (e) return console.log(e); console.log('Data > data4.json'); }) -}) \ No newline at end of file +}) From 72ca2a1532265e9e4324a85fdb145761afac0ea3 Mon Sep 17 00:00:00 2001 From: Abhikalp Arya Date: Mon, 28 Feb 2022 17:02:00 +0530 Subject: [PATCH 2/2] Update data4.json --- AbhikalpArya/Data/data4.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AbhikalpArya/Data/data4.json b/AbhikalpArya/Data/data4.json index aa25bf9..a553258 100644 --- a/AbhikalpArya/Data/data4.json +++ b/AbhikalpArya/Data/data4.json @@ -1 +1 @@ -["30075598020",1645881678497] \ No newline at end of file +["30075598020","4:57:56 pm"]