Slowly I study nodejs and faced a strange problem. There is a timestamp: 1380816002 I want to display it in a normal form. To do this, use the package moment. and here there is a strange behavior, moment( 1380816002 ) brings me Sat Jan 17 1970 03:33:25 GMT + 0400, although it should be Thu, 03 Oct 2013 16:00:02 GMT
Chyadt? Where to look?

  • one
    X * 1000 = ms - RubaXa
  • damn) just remembered it too ... thanks - thunder

1 answer 1

A thousand times a mistake, yes?

 moment.unix(timestamp); moment(timestamp*1000);