title: Spring Boot MongoRepository query via Date with Criteria lt & gte gives wrong result
body: <p>When I query MongoRepository via Date field with Criteria in a Spring Boot application, the result is wrong. Here is my method:</p>
  
  <pre><code>Query query = new Query(new Criteria().andOperator(
      Criteria.where("id").is(filter.getId()),
      Criteria.where("datas.ts").lt(filter.getEndTime()).gte(filter.getStartTime())
  ));
  
  List&lt;PhaseData&gt; phaseDatas = mongoOperations.find(query, PhaseData.class);
  List&lt;Data&gt; result = new ArrayList&lt;Data&gt;();
  
  for(Data pData : phaseDatas) {
      result.addAll(pData.getDatas());
  }
  
  return result;
  </code></pre>
  
  <p>When I query with</p>
  
  <p><code>{
      "id" : "1234",
      "startTime" : "2016-08-04 12:00",
      "endTime" : "2016-08-04 15:00"
  }</code></p>
  
  <p>it gives me records with hour <code>16:54</code> &amp; <code>21:12</code> too. How can I solve this issue?</p>