Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (18 sloc) 601 Bytes
title signature
Default time zone
moment.tz.setDefault(String);

By default, moment objects are created in the local time zone.
Local time zone - it's a time zone which is set in a browser or on your node.js server.

To change the default time zone, use moment.tz.setDefault with a valid time zone.

moment.tz.setDefault("America/New_York");

To reset the default time zone to local, use moment.tz.setDefault with no arguments.

moment.tz.setDefault();

Subsequent calls to moment.tz.setDefault will not affect existing moment objects or their clones.