title: elasticsearch failed to parse date
body: <p>I've the following index definition for the date:</p>
  
  <pre><code>"handshaketime" : {"type":"date","format":"YYYY-MM-ddTHH:mm:ss.SSSZ"}
  </code></pre>
  
  <p>And the actual date is of this form:</p>
  
  <pre><code>"handshaketime":"2015-04-07T10:43:03.000-07:00"
  </code></pre>
  
  <p>I've specified that date coming from DB has the above mentioned format but elasticsearch still gives me the following error.</p>
  
  <pre><code>Caused by: org.elasticsearch.index.mapper.MapperParsingException: failed to
  parse date field [2015-04-07T10:43:03.000-07:00], tried both date format
  [YYYY-MM-dd HH:mm:ss], and timestamp number with locale []
  </code></pre>
  
  <p>I'm using elasticsearch 1.4.4 with jdbc_river 1.4.0.10.</p>
  
  <p>Please tell me whats going on.</p>