Trying to sign a transaction using nem-sdk but getting the error, timestamp too far in future, when i tested it initially it worked for me, but now continuously getting this error. I go through the code in nem-sdk and here is the code written to calculate timestamp
let NEM_EPOCH = Date.UTC(2015, 2, 29, 0, 6, 25, 0);
let createNEMTimeStamp = function() {
return Math.floor((Date.now() / 1000) - (NEM_EPOCH / 1000));
}
which returns Monday, February 5, 1973 11:20:35 AM GMT+05:00
i checked network sync time it was Sun, 14 Apr 5067 19:50:19 GMT