Skip to content

Commit

Permalink
fix getBlockTimeStamp maintain utc+0
Browse files Browse the repository at this point in the history
Signed-off-by: Park-Kevin <kevin@bezant.io>
  • Loading branch information
Park-Kevin committed Sep 13, 2018
1 parent 69f4a59 commit 0852ab3
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 0852ab3

Please sign in to comment.