moment-timezone icon indicating copy to clipboard operation
moment-timezone copied to clipboard

moment.tz.guess() not using manual timezone on mobile devices

Open sam1463 opened this issue 6 years ago • 2 comments

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.

sam1463 avatar Aug 06 '18 18:08 sam1463

I am facing similar issue. How did you fix it ?

jitenshah19 avatar Apr 01 '22 10:04 jitenshah19

I used this library instead:

https://github.com/zoontek/react-native-localize#gettimezone

sam1463 avatar Apr 01 '22 13:04 sam1463