import moment from 'moment-timezone' ; export function getTimeZoneFromSettings ( dateFormatTZ ) { const detectedTimezone = moment . tz . guess ( ) ; return dateFormatTZ === 'Browser' ? detectedTimezone : dateFormatTZ ; }