Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
6905786
Topic
623060
Board
Development & Technical Discussion
Re: time field on a transaction using javascript
by
Endlessa
on
24/05/2014, 03:37:08 UTC
Quote from: eb3full on May 24, 2014, 01:20:33 AM
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
ty