title: Java Instant to LocalDateTime trailing zero
body: <p>I converted an Instant to LocalDateTime in Java with Spring Boot as seen below</p>
  <pre><code>LocalDateTime.ofInstant(timeInUtc, zoneId);
  </code></pre>
  <p>In my test I got a Regex to check whether my resource returns a Json with a LocalDateTime. The Regex expects a JSON value in the format:</p>
  <pre><code> 2018-11-15T08:38:49.382
  </code></pre>
  <p>But it looks like the trailing zero is removed, meaning instead of</p>
  <pre><code>2018-11-15T08:38:49.380
  </code></pre>
  <p>which would comply to the regex, I get</p>
  <pre><code> 2018-11-15T08:38:49.38
  </code></pre>
  <p>How can I make sure that the trailing zero is not removed?</p>