Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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