Timestamp is not correct in mongodb using mongoose(timestamp thirteen digits)

204 views
Skip to first unread message

Manpreet Gill

unread,
Sep 15, 2015, 10:53:20 AM9/15/15
to nodejs
Timestamp are incorrect
coding in timestamp
process.env.TZ= 'Asia/Kolkata';
var date = new Date();
date.toLocaleTimeString()
console.log('date-->'+date);
var Timestamp = date.getTime();
console.log('Timestamp-->'+Timestamp);

Ryan Schmidt

unread,
Sep 16, 2015, 10:41:03 AM9/16/15
to nod...@googlegroups.com
What timestamp are you seeing?
What should the timestamp be instead?


Reply all
Reply to author
Forward
0 new messages