moment-timezone
moment-timezone copied to clipboard
moment.tz.guess() not using manual timezone on mobile devices
I'm calling moment.tz.guess(true)
to get the device timezone in a react-native app, and it seems to be returning the timezone the device is currently in, rather than the device that is being used by the mobile device (i.e. the manually set timezone of the device). I'm not sure if this is expected behavior or if this is a bug.
I am facing similar issue. How did you fix it ?
I used this library instead:
https://github.com/zoontek/react-native-localize#gettimezone