Created
May 24, 2022 14:02
-
-
Save davidrenne/c903998b98b7920d529f9c9f169e2f3b to your computer and use it in GitHub Desktop.
Calculate moment-timezone GMT time regardless of users local timezone offset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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