how to get the time zone in react native code example
Example 1: react native get timezone
var date = new Date();
var offsetInHours = date.getTimezoneOffset() / 60;
Example 2: react native get timezone
import DeviceInfo from 'react-native-device-info';
console.log(DeviceInfo.getTimezone()); // 'America/New_York'