title: Set Jackson Timezone for Date deserialization
body: <p>I'm using Jackson (via Spring MVC Annotations) to deserialize a field into a <code>java.util.Date</code> from JSON. The POST looks like - <code>{"enrollDate":"2011-09-28T00:00:00.000Z"}</code>, but when the Object is created by Spring &amp; Jackson it sets the date as <code>"2011-09-27 20:00:00"</code>. </p>
  
  <p><strong>How can I set the proper timezone in Jackson?</strong> 
  <strong>Or if that is not the problem, how do I send EST from the JSON message?</strong> </p>
  
  <p><em><strong>Javascript/jQuery:</em></strong></p>
  
  <pre><code>var personDataView = { enrollDate : new Date($("#enrollDate").val()), 
                         //...other members
                        };
  
  
  $.postJSON('/some/path/', personDataView, function(data){
      //... handle the response here
  
  });
  </code></pre>
  
  <p><em><strong>JSON Message:</em></strong></p>
  
  <p><code>{"enrollDate":"2011-09-28T00:00:00.000Z"}</code></p>
  
  <p><em><strong>Spring Controller:</em></strong></p>
  
  <pre><code>@RequestMapping(value="/", method=RequestMethod.POST)
  public @ResponseBody String saveProfile(@RequestBody personDataView persondataView, HttpServletRequest request)
  {
          //...dataView has a java.util.Date enrollDate field
          //...other code
  }
  </code></pre>