setHours and setMinutes function not working right JS
<p>I have some dates. What is doing here is to set hours and minutes to new values but It was working right while I was in Windows but now In ubuntu, it's not working right?</p>

<pre><code>starting_recording_date = new Date(date)
starting_recording_date.setHours(starting_hour);
starting_recording_date.setMinutes(starting_minutes);
starting_recording_date.setSeconds(0);
</code></pre>

<p>Am using the above code and my data looks like</p>

<pre><code>[ 2016-10-12T00:00:00.000Z]
</code></pre>

<p>I wanted to set hours and minutes to <code>3Hour 0Minutes</code>,</p>

<p>But the resulting values are <code>2016-10-11T22:00:00.000Z</code></p>

<p>I don't know why but its taking 3 as 22.</p>

<p>Any help will be appreciated thanks. </p>

<p>UPDATE:
Its working good in my console of browser But still not good in terminal.</p>

<p><a href="https://i.stack.imgur.com/HvvtG.png" rel="nofollow"><img src="https://i.stack.imgur.com/HvvtG.png" alt="enter image description here"></a></p>