hi im looking way current system time in timestamp. used timestamp:
new date().gettime(); but return time in utc timezone not timezone server use
is there way timestamp system timezone?
check out moment.js http://momentjs.com/
npm install -s moment new moment objects default have system timezone offset.
var = moment() var formatted = now.format('yyyy-mm-dd hh:mm:ss z') console.log(formatted)
Comments
Post a Comment