why is javascript date an hour behind?
<p>Hi I am trying to create a unix timestamp to represent the latest time of the current day (23:59:59) like so:</p>

<pre><code>current_date = new Date();
end = new Date(current_date.getFullYear(), current_date.getMonth(), current_date.getDate(),23,59,59);
end = end.getTime() / 1000;
</code></pre>

<p>When I alert out the unix timestamp and convert it back into a datetime though it is an hour behind and represents 22:59:59 rather than 23:59:59.</p>

<p>I have to pass 24 to the date function for the hour parameter instead of 23 if I want 11pm is this right?</p>

<p>I am located in England so my time should be in GMT</p>
