showing results for - "react native get timezone"
Lorenzo
14 Feb 2018
1var date = new Date();
2var offsetInHours = date.getTimezoneOffset() / 60;
Christopher
03 Mar 2020
1import DeviceInfo from 'react-native-device-info';
2console.log(DeviceInfo.getTimezone());   //   'America/New_York'