Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidrenne/c903998b98b7920d529f9c9f169e2f3b to your computer and use it in GitHub Desktop.
Save davidrenne/c903998b98b7920d529f9c9f169e2f3b to your computer and use it in GitHub Desktop.
Calculate moment-timezone GMT time regardless of users local timezone offset.
import moment from 'moment-timezone';
moment().tz("America/Detroit", true).utcOffset(0, false).format();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment