Message from JavaScript discussions

May 2017

— Does new Date().toLocaleString() give the correct time?

— 

The time is 1495879942

In shell:

$ date -d 1495879942
Sat May 27 17:12:22 WIB 2017


In moment.js:
console.log(moment(1495879942).format('HH:mm:ss'))
14:31:19

— Does moment know about your timezone?

— Yes

— How could I know?

— What happens if you do moment().format()

— '2017-05-27T17:30:12+07:00'

— Looks like it's know

— Weird..

— What about moment(1495879942).format()

— si_kabayan

— I figured it out