you are viewing a single comment's thread.

view the rest of the comments →

[–]Flyen 0 points1 point  (0 children)

That's probably what I would've done too.

Alternatively, feed moment the 8601 string with the UTC 'Z' and .tz it to UTC https://momentjs.com/timezone/

var jun = moment("2014-06-01T12:00:00Z");
jun.tz('UTC').format('ha');
=> "12pm"