Post
Topic
Board Development & Technical Discussion
Re: time field on a transaction using javascript
by
Endlessa
on 24/05/2014, 03:37:08 UTC
Is objectTransaction.time a unix timestamp? The Date constructor requires timestamps in milliseconds, so you need to do:

Code:
new Date(objectTransaction.time * 1000).toUTCString()

lol I knew it was something stupid Smiley ty Smiley