Message from JavaScript discussions

May 2017

— Https://


I'm tryng to format UTC into human readable form using moment.js
But the result is off from the actual time or date shell command (date -d TIME_IN_UTC)

— Any suggestion?

— Timezones?

— 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:

Message permanent page

— 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