bereaksi asli mendapatkan zona waktu
import DeviceInfo from 'react-native-device-info';
console.log(DeviceInfo.getTimezone()); // 'America/New_York'
Hemang Joshi
import DeviceInfo from 'react-native-device-info';
console.log(DeviceInfo.getTimezone()); // 'America/New_York'
var date = new Date();
var offsetInHours = date.getTimezoneOffset() / 60;