title: javascript new Date() set to GMT -4
body: <p>my server is on GMT -4 and all the records which go into the database are GMT -4 using</p>
  
  <pre><code>&lt;?php date("Y-m-d H:i:s");?&gt;
  </code></pre>
  
  <p>so if the time was 15:00:00 GMT +1 (my current timezone)<br>
  the time added to the database would be 10:00:00.</p>
  
  <p>however when I use javascript <code>new Date();</code> it gives it as  </p>
  
  <p><code>Thu Aug 29 2013 22:17:00 GMT+0100 (GMT Summer Time)</code></p>
  
  <p>i have this function to convert the js date to php</p>
  
  <pre><code>$jsDate = $_REQUEST["date"];
  $jsDateTS = strtotime($jsDate);
  if ($jsDateTS !== false) 
  {
  $jsDateTS = date('Y-m-d H:i:s', $jsDateTS );
  echo $jsDateTS."&lt;br&gt;";
  </code></pre>
  
  <p>but it writes <code>2013-08-29 22:17:00</code> and not <code>2013-08-28 17:17:00</code> which is what I need.</p>
  
  <p>how do I convert my javascript new Date to GMT -4? is it possible or not?</p>
  
  <p>thanks, and sorry if I am unclear in any way.</p>