title: gson fails to parse using GsonBuilder.setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ")
body: <p>I get this string from the server:</p>
  
  <pre><code>[
   {
    "title":"spoil the ones u love today",
    "startDateTime":"2014-08-10T20:10:36.7158Z"
   },
   {
    "title":"home made patisserie",
    "startDateTime":"2014-08-10T20:08:45.0218Z"
   }
  ]
  </code></pre>
  
  <p>and I try to parse it an object</p>
  
  <pre><code>    public class Offer implements Serializable {
          public String title;
          public Date startDateTime;
      }
  
  Type collectionType = new TypeToken&lt;ArrayList&lt;Offer&gt;&gt;() {}.getType();
  
  mOffersList.addAll((Collection&lt;? extends Offer&gt;) gson.fromJson(result, collectionType));
  </code></pre>
  
  <p>but when I define "startDate" as a Date </p>
  
  <p>the collection I get back from gson is empty</p>
  
  <p>When i define "startDate" as a String</p>
  
  <p>the collection is filled correctly.</p>
  
  <p>I want to change its date format. That's why I prefer saving it as a Date object.</p>
  
  <p>I have tried</p>
  
  <p><code>Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").create;</code></p>
  
  <p>and yet Gson fails to parse the server's string into</p>
  
  <p><code>Date startDateTime</code>. Nothing is added to the <code>mOffersList</code> and it stays empty.</p>
  
  <p>What am I doing wrong? </p>