title: How to parse DateTime in format yyyyMMddHHmmss to OffsetDateTime using DateFormatter
body: <p>I have an API for JSON parsing which requires a DateTimeFormatter instance in order to parse date time strings to OffsetDateTime. However I always get an exception <strong>Unable to obtain ZoneOffset from TemporalAccessor: {},ISO resolved to 2021-08-17T13:26:49 of type java.time.format.Parsed</strong>
  The API uses OffsetDateTime.parse(String, DateFormatter).</p>
  <pre><code>// DateTimeFormatter instance to be provided to the API
  DateTimeFormatter formatter = DateTimeFormatter.ofPattern(&quot;yyyyMMddHHmmss&quot;);
  // this is how the API uses the DateTimeFormatter instance
  OffsetDateTime dateTime = OffsetDateTime.parse(&quot;20210817132649&quot;, formatter);
  </code></pre>
  <p>How do I have to create the DateTimeFormatter in order to deliver a ZoneOffset, so that the API is able to parse the DateTime correctly. The ZoneOffset may be UTC.</p>