Local1.5.0+

  1. moment().local();

Sets a flag on the original moment to use local time to display a moment instead of the original moment's time.

  1. var a = moment.utc([2011, 0, 1, 8]);
  2. a.hours(); // 8 UTC
  3. a.local();
  4. a.hours(); // 0 PST

Local can also be used to convert out of a fixed offset mode:

  1. moment.parseZone('2016-05-03T22:15:01+02:00').local().format(); // "2016-05-03T15:15:01-05:00"

See moment.utc() for more information on UTC mode.