title: @DateTimeFormat in Spring gives wrong date
body: <p>I have a method that has a parameter annotated with @DateTimeFormat.</p>
  <pre><code>public static void exampleMethod(@ApiParam(value = &quot;date&quot;, required = true)
                                   @DateTimeFormat(pattern = &quot;yyyy-MM-dd&quot;) Date date) {...}
  </code></pre>
  <p>When it gets &quot;2021-05-13&quot;, <strong>date</strong> variable contains &quot;2021-05-12&quot; for some reason. What other similar annotations or date data types I can use to avoid this bug?</p>
  <p>Thank in advance.</p>