Skip to content

Commit

Permalink
fix getBlockTimeStamp maintain utc+0
Browse files Browse the repository at this point in the history
  • Loading branch information
Park-Kevin committed Sep 13, 2018
1 parent 27a9c48 commit 9d994eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/platform/fabric/utils/FabricUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ async function generateBlockHash(block_header) {

async function getBlockTimeStamp(dateStr) {
try {
return new Date(dateStr);
return new Date(dateStr).toISOString();
} catch (err) {
logger.error(err);
}
return new Date(dateStr);
return new Date(dateStr).toISOString();
}

async function generateDir() {
Expand Down

0 comments on commit 9d994eb

Please sign in to comment.