title: Use ISO-8601 dates in JAX-RS responses
body: <p>I'm building RESTful web services using Java EE 7 on GlassFish 4. When serializing POJOs containing <code>java.util.Date</code> objects, the timezone information is not included.</p>
  
  <p>How can I customize object serialization so <code>java.util.Date</code>s have timezone info included?</p>
  
  <p>For example, instead of this:</p>
  
  <pre><code>{
    "id": 1234,
    "foo": "2014-05-19T13:53:49.392"
  }
  </code></pre>
  
  <p>I'd instead like this:</p>
  
  <pre><code>{
    "id": 1234,
    "foo": "2014-05-19T13:53:49.392+09:30"
  }
  </code></pre>
  
  <p>Where the server's timezone is GMT + 09:30.</p>