Here's a function that can convert a date object in Mountain Time to GMT:
index.tsx429 chars13 lines
To use this function, simply pass in a date object in Mountain Time:
index.tsx180 chars4 lines
Note that Mountain Time is represented by a negative timezone offset (currently -6 hours), so we add this offset in minutes to the date's UTC time to get the local time in Mountain Time. We then subtract this offset from the UTC time to get the equivalent time in GMT.
gistlibby LogSnag