Does JavaScript's Date object automatically handle daylight savings?
<p>I am investigating an issue involving the conversion of serialized UTC dates in to JavaScript date objects; I have read a few questions on this topic already but I am still unclear.</p>

<p>Firstly let me say that I am in the UK. If I take for example the UTC epoch <code>1473805800000</code>, which is <code>Tue, 13 Sep 2016 22:30:00 GMT</code>, then use that value to create a JavaScript date:</p>

<pre><code>var date = new Date(1473805800000);
console.log(date);
</code></pre>

<p>The console logs:</p>

<pre><code>Tue Sep 13 2016 23:30:00 GMT+0100 (GMT Summer Time)
</code></pre>

<p>I.e. the browser has recognised that an extra hour needs to be added for DST.</p>

<p>My question is, if I were to run this same code again after the 30th October when the clocks have gone back, would I still get the same result of 23:30, or would it be 22:30 as if it were GMT? In other words, has the browser added an hour because the subject date is DST or because we are currently in DST?</p>

<p>I'm prevented from altering my work station's system clock by group policy, otherwise I would skip it forward in time and test this myself.</p>