I am storing Unix Timestamp in Firebase server and it is saving as 1417780144675.
When I am converting epochconverter the output is:
Assuming that this timestamp is in milliseconds:
GMT: Fri, 05 Dec 2014 11:49:04 GMT
Your time zone: 12/5/2014, 5:19:04 PM GMT+5:30
But when I am converting in JavaScript, the output is:
Fri Aug 30 46897 15:27:55 GMT+0530 (IST)
So output from epochconverter is correct whereas in JavaScript it's coming wrong.
Please how to get correct output using JavaScript.
new Date(1417780144675).toUTCString(), which returns "Fri, 05 Dec 2014 11:49:04 GMT" (like the middle line of epochconverter).