title: How to use Date objects in local timezone with Backbone.js sync?
body: <p>I am using Backbone.js sync to store my models to a database.</p>
  
  <p>The problem is that Backbone.js sync converts Date from my local timezone format into a UTC Date. I have traced this back to use of <code>JSON.stringify</code> within Backbone.js sync:</p>
  
  <pre><code>params.data = JSON.stringify(model.toJSON());
  </code></pre>
  
  <p>As an example what happens here:</p>
  
  <pre><code>&gt;&gt;&gt; var a = {myDate: new Date();}
  &gt;&gt;&gt; JSON.stringify(a);
  &gt;&gt;&gt; a
  "{"myDate":"2012-05-04T21:58:34.734Z"}"
  </code></pre>
  
  <p>As such, when I use Backbone.js sync again to retrieve the same resource, my timezone is converted to UTC. I would wish instead to have the original, local timezone preserved.</p>
  
  <p>For me it is OK that the data is stored to the database as UTC, just as long as I somehow manage to convert it back to the local timezone.</p>
  
  <p>All help is approciated.</p>