title: Wrong timezone in some devices - React Native
body: <p>I have a react-native app running on various devices. Wherever I use time or datetime from <code>new Date()</code> or <code>moment</code> or by any other library, some devices show wrong time in the app. The actual device time is correct with respect to timezone but it shows a different time inside the app with a different timezone even if the timezone settings in the device is correctly set (Tried with Automatic and Manually set timezone).</p>
  <p>I came across similar issues on stackoverflow and react-native's git issues stating that it can be fixed by updating <strong>jsc-android</strong> package manually. I already have the latest version of <strong>jsc-android</strong> in the app, but then too facing the same problem. This occurs even on latest version of <code>react-native: 0.61</code> too.</p>
  <p>One of those devices are Redmi Note 5 (Android version 8.1.0).</p>
  <p>Here is a screenshot of a sample app(Please ignore the orange stripes) showing incorrect timezone. The actual timezone is IST(Indian Standard Time)</p>
  <p><a href="https://i.stack.imgur.com/MFWWb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MFWWb.png" alt="Screenshot" /></a></p>
  <p>You can compare the system time in the <strong>Status Bar(11:21 AM)</strong> and the <strong>App time (3:51 AM).</strong></p>
  <p>Here is the code for the above output (App.js)</p>
  <pre><code>
      import React from 'react';
      import {
        View,
        Text,
        StatusBar,
      } from 'react-native';
      import moment from 'moment';
      
      const App = () =&gt; {  
        return (
          &lt;View style={{flex: 1, justifyContent: 'center', alignItems: 'center' }}&gt;
            &lt;StatusBar barStyle=&quot;dark-content&quot; /&gt;
            &lt;Text&gt;Time: {moment(new Date()).format(&quot;h:mm A&quot;)}&lt;/Text&gt;
            &lt;Text&gt;Time String: {new Date().toTimeString()}&lt;/Text&gt;
            &lt;Text&gt;Time Offset: {new Date().getTimezoneOffset()}&lt;/Text&gt;
            &lt;Text&gt;Static Time (5:21 PM): {moment(new Date(&quot;2019-09-23T11:51:29.184Z&quot;)).format(&quot;h:mm A&quot;)}&lt;/Text&gt;
          &lt;/View&gt;
        );
      };
      
      export default App;
  
  </code></pre>
  <p>Any Suggestions???</p>