title: Javascript new Date(number) but produced different timezone (Malaysia)
body: <p>Important notes: </p>
  
  <ol>
  <li>The machine's date &amp; time setting is the automatic setting </li>
  <li>The machine is located in Malaysia, and the timezone is GMT +8</li>
  <li>Malaysia do not have daylight saving</li>
  </ol>
  
  <p>Question:</p>
  
  <p>When using the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#Parameters" rel="nofollow noreferrer"><code>Date</code> constructor</a> with the number value which representing the number of milliseconds since January 1, 1970, 00:00:00 UTC.
  These two numbers (<code>378000000000</code>, <code>379000000000</code>) are giving different timezone.</p>
  
  <p><a href="https://i.stack.imgur.com/g12Ik.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g12Ik.png" alt="output example"></a></p>
  
  <p>This was tested in both Chrome devtool console and node.js, they're giving the same result. Came across this <a href="https://stackoverflow.com/questions/6841333/why-is-subtracting-these-two-times-in-1927-giving-a-strange-result/6841479#6841479">post</a> but it doesn't seems relevant. </p>
  
  <p>Any clue / explanation please?</p>
  
  <p>Below is the quick snippet and the screenshot of result
  <a href="https://i.stack.imgur.com/MiGwr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MiGwr.png" alt="enter image description here"></a>
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>console.log(new Date(378000000000).toString());
  console.log(new Date(378000000000).toLocaleString());
  console.log('-----------');
  console.log(new Date(379000000000).toString());
  console.log(new Date(379000000000).toLocaleString());</code></pre>
  </div>
  </div>
  </p>