Skip to content

Commit

Permalink
Merge pull request #43 from joticajulian/dsteem-master
Browse files Browse the repository at this point in the history
expiration time: change date.now to props.time
  • Loading branch information
joticajulian authored Jul 15, 2019
2 parents b280bb2 + 2b81ffb commit f9a241a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/broadcast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class BroadcastAPI {

const ref_block_num = props.head_block_number & 0xFFFF
const ref_block_prefix = Buffer.from(props.head_block_id, 'hex').readUInt32LE(4)
const expiration = new Date(Date.now() + this.expireTime).toISOString().slice(0, -5)
const expiration = new Date(new Date(props.time + 'Z').getTime() + this.expireTime).toISOString().slice(0, -5)
const extensions = []

const tx: Transaction = {
Expand Down

0 comments on commit f9a241a

Please sign in to comment.