import moment from 'moment-timezone' ; export function getTimezoneOffsetInMs ( time ) { const zone = moment . defaultZone ? moment . defaultZone . name : moment . tz . guess ( ) ; return moment . tz . zone ( zone ) . parse ( time ) * 60000 ; }