Had to code around OS epoch. They use local time but javascript epoch functions assume GMT-0.
const now = new Date();
var correctEpoch = Math.round(now.getTime() / 1000) + (epochTime - epochDevTime);
var myDate = new Date(correctEpoch * 1000);
return myDate;
Had to code around OS epoch. They use local time but javascript epoch functions assume GMT-0.